Create ER Diagram of a Database in MySQL Workbench

Create ER Diagram of a Database in MySQL Workbench

  1. First make sure you have a Database and Tables created on the MySQL server.

Image for post

Example :-

Database – bank.

Tables – account, branch, customer, loan, trandetails.

2. Click on Database -> Reverse Engineer.

Image for post

3. Select your stored connection (for connecting to your MySQL Server in which database is present) from the dropdown. Then click Next.

Image for post

4. After the execution gets completed successfully (connection to DBMS), click Next.

Image for post

5. Select your Database from the MySQL Server for which you want to create the ER Diagram (in our case the database name is ?bank?), then click Next.

Image for post

6. After the retrieval gets completed successfully for the selected Database, click Next.

Image for post

7. Select the Tables of the Database which you want to be visible on the ER Diagram (In this case I am importing all the tables of the DB), then click Execute>.

Image for post

8. After the Reverse Engineering Process gets completed successfully, click Next.

Image for post

9. Click Finish.

Image for post

Now you can see the ER Diagram of the Database.

Image for post

25