Computer >> Computer tutorials >  >> Programming >> MySQL

How to Auto Generate Database Diagram in MySQL?


To auto generate database diagram in MySQL, use MySQL workbench. For this, select the option from database as shown below −

Database->Reverse Engineer

Here is the snapshot showing the Database tab −

How to Auto Generate Database Diagram in MySQL?

After clicking “Database” above, choose the option “Reverse Engineer”. This state the “Reverse Engineer” mode.

How to Auto Generate Database Diagram in MySQL?

Clicking above will display the following table automatically. We had one table in the database “business”. The same table “tblstudent” is visible here −

How to Auto Generate Database Diagram in MySQL?