Creating ERDs Using MySQL Workbench Simple ERD 1. 2. 3. 4. Place tables on the diagram For table1 Rt-click the title bar and select “Edit in New Window…” Change the name of table1 to the appropriate name Click the “Columns” tab at the very bottom of the window (A primary key field will automatically be created. Click anywhere else to display it in the table.) 5. Do the same thing for the remaining tables 6. Select the relationship connector that is suitable between the tables a. Click the table that is the “many” side first b. Then click the “one” side table c. A foreign key will be automatically created 7. Click “File” menu > Export > Export as PNG > name the file > click Save Simple ERD Example 1. 2. 3. 4. 5. 6. 7. 8. Detailed ERD Place tables on the diagram For table1 Rt-click the title bar and select “Edit in New Window…” Change the name of table1 to the appropriate name Click the “Columns” tab at the very bottom of the window (Add suitable column/attribute names, data types, and options, e.g., PK, NN, AI, etc.) Do the same thing for the remaining tables Select the relationship connector that is suitable between the tables a. Use “Place a relationship Using Existing Columns” b. Click the FK attribute in the table that is the “many” side first c. Then click the PK attribute in the “one” side table Add text objects for describing the relationship(s), e.g., “contains,” “is located in,” etc. Click “File” menu > Export > Export as PNG > name the file > click Save Detailed ERD Example