问题
Is there an application to reverse engineer an existing database in mysql and/or postgre?
I'm interested in obtaining the DB diagram from an existing one, similar as it can be done in MSSQL Server
回答1:
For MySQL, try MySQL Workbench.
For both MySQL and PostgreSQL, try TOAD Data Modeler.
If you use the open-source diagram app Dia, there are several tools to generate Dia diagrams from SQL databases including MySQL and PostgreSQL.
update: MySQL Workbench 5.2 supports reverse-engineering diagrams from a live database in addition to an SQL script. MySQL Workbench 5.2 just announced their Release Candidate 1 (as of 5/12/2010).
回答2:
SchemaSpy is a very good option for reverse engineering. For diagramming bit it uses another tool GraphViz. For everything to work together make sure GraphViz is installed and its path to its bin is accessible to the SchemaSpy.
Here is a sample output.
回答3:
Enterprise Architect
Reverse engineer from many popular DBMS systems, including Oracle 9i and 10g, SQL Server, My SQL, Access, PostgreSQL and others
回答4:
I recommend DBeaver: multi-platform, free, open source, connects to most popular DB engines and supports reverse engineering.
I have tried reverse engineering both a MySQL DB and a PostgreSQL DB and it worked like a charm :)
回答5:
pgDesigner for postgres, mysql workbench for mysql...
来源:https://stackoverflow.com/questions/670450/application-to-reverse-engineer-mysql-postgresql-db