我有一个PostgreSQL数据库。我想从数据库中生成ERD。有没有内置工具或者第三方工具?


当前回答

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. 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. In the next dialouge box, you'll see that the connection to DBMS is started and schema is revrieved from Database. Go next. Now Select the Schema you created earlier. It is the table you want to create the ER diagram of. 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.当您点击Next和Finish时,所需的ER图就会出现在屏幕上。

其他回答

你可以使用dbeaver来做到这一点。它允许您将ER图导出为png/svg等格式。

德布弗 - https://dbeaver.io/

双击一个模式(例如,模式->公共->表)并打开“ER图”选项卡(在“属性”选项卡旁边)

从https://www.dbvis.com/download/10.0下载DbVisualizer

安装完成后,创建数据库连接:

通过单击ping服务器更改数据库的高亮显示细节和测试。最后点击连接

享受。

pgModeler可以从PostgreSQL数据库生成良好的ER图。

https://pgmodeler.io/ 许可证: GPLv3

似乎没有手动,但没有手动也很容易。这是 QT应用程序。AFAIK, Fedora和Ubuntu软件包。(pgmodeler)

在pgModeler的最新版本(0.9.1)中,试用版允许您创建ERD(没有禁用设计按钮)。这样做:

点击设计按钮,首先创建一个空的“设计模型” 然后单击Import并连接到您想要的服务器和数据库(除非您已经在Manage中进行了设置,在这种情况下,所有数据库都可以在步骤3中选择) 导入所有对象(它会警告您正在导入当前模型,这很好,因为它是空的)。 现在切换回Design选项卡查看您的ERD。

我使用DrawERD为ERD和DB文件。https://drawerd.com

pgAdmin 4版本30及更新版本可以从现有数据库生成ERD。只需右键单击数据库并选择Generate ERD。