Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto Generate Database Diagram MySQL [closed]

I'm tired of opening Dia and creating a database diagram at the beginning of every project. Is there a tool out there that will let me select specific tables and then create a database diagram for me based on a MySQL database? Preferably it would allow me to edit the diagram afterward since none of the foreign keys are set...

Here is what I am picturing diagram-wise (please excuse the horrible data design, I didn't design it. Let's focus on the diagram concept and not on the actual data it represents for this example ;) ):

diagramsee full size diagram

like image 398
cmcculloh Avatar asked Aug 05 '08 15:08

cmcculloh


People also ask

How do I create a database schema diagram in MySQL?

Open MySQL Workbench. Select File and New Model from the top menu. Select File, hover over Import, and press Reverse Engineer MySQL Create Script…. Specify the SQL file needing a diagram. Press Execute, Next, and then Finish.

Can MySQL Workbench generate ER diagram?

Select the "Reverse Engineer" option. A wizard will be open and it will generate the ER Diagram for you.

How do I save a EER diagram in MySQL Workbench?

To open the table editor, either change back to the MySQL Model tab and right-click on the movies table, or right-click on movies in the EER diagram and select an Edit 'movies' option. Save the model by choosing File and then Save Model from the menu, or click the Save Model to Current File icon on the menu toolbar.


1 Answers

Try MySQL Workbench, formerly DBDesigner 4:

http://dev.mysql.com/workbench/

This has a "Reverse Engineer Database" mode:

Database -> Reverse Engineer

enter image description here

like image 104
Michael Stum Avatar answered Sep 29 '22 03:09

Michael Stum