program tip

기존 데이터베이스에 대한 ERD 다이어그램을 얻는 방법은 무엇입니까?

radiobox 2020. 10. 30. 07:52
반응형

기존 데이터베이스에 대한 ERD 다이어그램을 얻는 방법은 무엇입니까?


PostgreSQL 데이터베이스가 있습니다. ERD를 얻고 싶습니다. 어떻게 할 수 있습니까?


이를 위해 DBVisualizer사용 했습니다.

설명 : 참조 그래프는 모든 기본 / 외래 키 매핑 (참조 무결성 제약이라고도 함)을 그래프 스타일로 자동 렌더링하므로 훌륭한 기능입니다. 테이블 노드 및 관계는 사용 가능한 여러 레이아웃 모드와 함께 자동으로 레이아웃됩니다. 결과 그래프는 모든 정보를 최적의 읽기 쉬운 레이아웃으로 표시하므로 고유합니다. 사이트에서


이를 위해 dbeaver를 사용할 수 있습니다. ER 다이어그램을 png / svg 등으로 내보낼 수 있습니다.

DBeaver- https: //dbeaver.io/

스키마를 두 번 클릭하고 "속성"탭 옆에있는 "ER 다이어그램"탭을 엽니 다.


DbVisualizer 다운로드 : https://www.dbvis.com/download/10.0

설치 후 데이터베이스 연결 생성 :

SS1

ping 서버를 클릭하여 db의 강조 표시된 세부 정보를 변경하고 테스트하십시오. 마지막으로 연결을 클릭하십시오.

즐겨.


pgModeler는 PostgreSQL 데이터베이스에서 멋진 ER 다이어그램을 생성 할 수 있습니다.

매뉴얼이없는 것 같지만 매뉴얼 없이는 충분히 쉽습니다. QT 애플리케이션입니다. AFAIK, Fedora 및 Ubuntu에는 패키지가 있습니다. (pgmodeler)

최신 버전의 pgModeler (0.9.1)에서 평가판을 사용하면 ERD를 만들 수 있습니다 (디자인 버튼은 비활성화되지 않음). 그렇게하려면 :

  1. 디자인 버튼을 클릭하여 먼저 빈 '디자인 모델'을 만듭니다.
  2. 그런 다음 가져 오기를 클릭하고 원하는 서버와 데이터베이스에 연결합니다 (관리에서 이미 설정하지 않은 경우 3 단계에서 모든 데이터베이스를 선택할 수 있음).
  3. 모든 개체를 가져옵니다 (현재 모델로 가져오고 있다는 경고가 표시됩니다. 비어 있으므로 괜찮습니다).
  4. 이제 디자인 탭으로 돌아가서 ERD를 확인하십시오.

우리 팀은 Visual Paradigm을 사용하여 많은 프로젝트에서 데이터베이스에서 ER 다이어그램을 생성합니다. 우리는 주로 MS SQL 및 Oracle에서 작업하지만 PostgreSQL, MySQL, Sybase, DB2 및 SQLite와 같은 다른 DBMS도 지원한다는 것을 알고 있습니다.

단계 :

  1. Visual Paradigm의 ​​툴바에서 Tools> DB> Reverse Database ...를 선택합니다.
  2. 설정을 그대로 유지하고 다음을 클릭합니다. PostgreSQL을 드라이버로 선택하고 여기에 드라이버 파일을 제공합니다. 다운로드 링크를 클릭하면 드라이버를 얻을 수 있습니다.
  3. 호스트 이름, 데이터베이스 이름, 사용자 및 암호를 입력하고 다음을 클릭합니다.
  4. 그런 다음 데이터베이스를 연구하고 그 안에있는 테이블을 나열합니다.
  5. ERD를 구성 할 테이블을 선택하고 계속하면됩니다. 선택한 테이블이 제시된 ERD가 생성됩니다.

BTW는 또한 ERD에서 데이터베이스 스키마 생성 및 업데이트를 지원합니다.

도움이 되었기를 바랍니다. :-)

PostgreSQL 데이터베이스에서 ERD 생성에 대한 추가 정보


또 다른 옵션은 Oracle SQL Developer를 사용하는 것 입니다. 다음과 같이 두 단계 :

(1) 우선, SQL Developer를 PostgreSQL 데이터베이스연결 해야 합니다 .

(2) 그런 다음 SQL Developer를 사용하여 엔티티 관계 (ER) 다이어그램을 생성 할 수 있습니다.


perl 모듈 SQL :: Translator는 약간의 작업으로이를 수행 할 수 있습니다.


Perhaps have a look at AquaFold's Aqua Data Studio. It is a database IDE with entity-relationship diagramming. It also includes data profiling. It is not free but its price is very reasonable considering its capabilities.


ERBuilder can generate ER diagram from PostgreSQL databases (reverse engineer feature).

Below step to follow to generate an ER diagram:

• Click on Menu -> File -> reverse engineer

• Click on new connection

• Fill in PostgresSQL connection information

• Click on OK

• Click on next

• Select objects (tables, triggers, sequences…..) that you want to reverse engineer.

• Click on next.

  • If you are using trial version, your ERD will be displayed automatically.
  • If your are using the free edition you need to drag and drop the tables from the treeview placed in the left side of application

여기에 이미지 설명 입력


I wrote this utility, it automatically generates the DSL code from a postgres database which you can then paste into dbdiagram.io/d website to get ER diagrams

https://github.com/nsingla/dbdiagrams


You can generate ER diagram from PgAdmin.

  1. Open PgAdmin
  2. Right click on any table and select statement and it will show two window one is query other is graphical window so you can add the table which you want to generate the diagram.
  3. To save go to save as and select Graphical Query (image)

  1. Open MySQL Workbench. In the home screen click 'Create EER Model From Existing Database'. We are doing this for the case that we have already made the data base and now we want to make an ER diagram of that database.

  2. Then you will see the 'Reverse Engineer Database' dialouge. Here if you are asked for the password, provided the admin password. Do not get confused here with the windows password. Here you need to provide the MySQL admin password. Then click on Next.

  3. In the next dialouge box, you'll see that the connection to DBMS is started and schema is revrieved from Database. Go next.

  4. Now Select the Schema you created earlier. It is the table you want to create the ER diagram of.

  5. Click Next and go to Select Objects menu. Here you can click on 'Show Filter' to use the selected Table Objects in the diagram. You can both add and remove tables here.Then click on Execute.

6.When you go Next and Finish, the required ER diagram is on the screen.

참고 URL : https://stackoverflow.com/questions/3474389/how-to-get-erd-diagram-for-an-existing-database

반응형