Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import your existing table structure in EER diagram using MySQL Workbench?

Tags:

sql

mysql

erd

I just want to ask about my problem. Right now I have an existing database and tables. And I want to get the structures of every table. I just need to get their column name for comparison for other tables.

But How can I include this in an EER diagram? What I did is I copied all the tables column in a paper and I manually inputted the details to the MySQL workbench EER tool. I have a lots of tables. So it is so difficult for me to input one by one all of the tables. Is there an easy way? Can you provide me any links how to do that? Ok that's all. Thanks.

like image 991
Jerielle Avatar asked Mar 17 '14 01:03

Jerielle


People also ask

How do you add a table to the EER diagram?

Tables can also be added to an EER Diagram using the table tool on the vertical toolbar. Make sure that the EER Diagram tab is selected, then right-click the table icon on the vertical toolbar. The table icon is the rectangular tabular icon. Clicking the mouse on this icon changes the mouse pointer to a table pointer.

How do I create an EER diagram in MySQL Workbench?

To create an EER diagram for the sakila database, first add an EER diagram by double-clicking the Add Diagram icon in the EER Diagrams panel to create and open a new EER Diagram editor. The EER Diagram canvas is where object modeling takes place.

How do I import a table into SQL Workbench?

To import a file, open Workbench and click on + next to the MySQL connections option. Fill in the fields with the connection information. Once connected to the database go to Data Import/Restore. Choose the option Import from Self-Contained File and select the file.


2 Answers

If you want to generate an EER Diagram of existing MySQL database you can use the Reverse Engineer feature of MySQL workbench.

Database -> Reverse Engineer

like image 79
johnpili Avatar answered Oct 10 '22 16:10

johnpili


Two ways to start reverse engineering process in MySQL workbench (actual version June 2016):

a) go to the main site and on the right side of of the header "Models" click on the ">" sign and select "Create EER Model from Database"

b) key combination: Ctrl + R

like image 26
Michael Käfer Avatar answered Oct 10 '22 14:10

Michael Käfer