Home Auto Generate Database Diagram MySQL
Reply: 13

Auto Generate Database Diagram MySQL

cmcculloh Published in 2008-08-05 15:45:02Z

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 ;) ):

see full size diagram

Benny Neugebauer
Benny Neugebauer Reply to 2017-05-21 11:01:34Z

Try MySQL Workbench, formerly DBDesigner 4:


This has a "Reverse Engineer Database" mode:

Mark Biek
Mark Biek Reply to 2008-08-05 15:48:10Z

I believe DB Designer does something like that. And I think they even have a free version.

edit Never mind. Michael's link is much better.

Michael Currie
Michael Currie Reply to 2016-08-06 07:54:36Z

The "Reverse Engineer Database" mode in Workbench is only part of the paid version, not the free one.

mlambie Reply to 2008-09-22 01:48:14Z

On a Mac, SQLEditor will do what you want.

Leigh Pyle
Leigh Pyle Reply to 2009-07-27 13:51:48Z

This http://code.google.com/p/database-diagram/ will reverse engineer your database. Just do an export 'structure only' then paste the SQL into the tool.

Reinderien Reply to 2011-03-11 00:50:02Z

I've recently started using http://schemaspy.sourceforge.net/ . It uses GraphViz, and it strikes me as having a good balance between usability and simplicity.

kay Reply to 2012-10-25 18:50:50Z

Try MySQL Maestro. Works great for me.

Tauri Alfa
Tauri Alfa Reply to 2012-02-20 11:45:34Z

MySQL Workbench worked like a charm.

I just backed up database structure to SQL script and used it in "Create EER Model From SQL Script" of MWB 5.2.37 for Windows.

mb2015 Reply to 2012-06-01 14:30:37Z

Visual Paradigm for UML 9.0

It's awesome I used to work with mysql bench but for big databases (something like more than 300 tables) won't work very well but visual paradigm reverse database works so much better

Chris Murray
Chris Murray Reply to 2012-08-31 13:59:36Z

phpMyAdmin has what you are looking for (for many years now): It takes a small bit of configuration, but gives you additional benefits too: http://www.phpmyadmin.net/documentation/#pmadb

Bartek Reply to 2014-04-12 16:13:40Z

Try out Vertabelo!

It's an online database modeler that supports reverse enginnering.

Just create free of charge Vertabelo account, import an existing database into Vertabelo and voila - your database is in Vertabelo!

It supports following databases:

  • PostgreSQL,
  • MySQL,
  • Oracle,
  • IBM DB2,
  • MS SQL Server.
Hugo Silva
Hugo Silva Reply to 2014-07-11 10:31:29Z

In MySql Workbench (6.0) its possible generate one diagram based on tables created. For that you should access to the tools bar, press Model and forward Create Diagram from Catalog Objects and done!

user3046585 Reply to 2014-09-09 10:13:10Z

Here is a tool that generates relational diagrams from MySQL (on Windows at the moment). I have used it on a database with 400 tables. If the diagram is too big for a single diagram, it gets broken down into smaller ones. So you will probably end up with multiple diagrams and you can navigate between them by right clicking. It is all explained in the link below. The tool is free (as in free beer), the author uses it himself on consulting assignments, and lets other people use it. http://www.scmlite.com/Quick%20overview

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.313084 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO