0% found this document useful (0 votes)
9 views1 page

03 - MySQL - Relationships

This document provides a step-by-step guide for creating an Entity-Relationship Diagram (ERD) using MySQL Workbench. It includes instructions for opening the program, creating a model from an existing database, modifying relationship participation, and saving the diagram. Additionally, it notes the importance of saving the model to avoid needing to restart the computer to use Workbench again.

Uploaded by

cawote1850
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

03 - MySQL - Relationships

This document provides a step-by-step guide for creating an Entity-Relationship Diagram (ERD) using MySQL Workbench. It includes instructions for opening the program, creating a model from an existing database, modifying relationship participation, and saving the diagram. Additionally, it notes the importance of saving the model to avoid needing to restart the computer to use Workbench again.

Uploaded by

cawote1850
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Ms.

Mary William

MySQL

(MySQL Workbench)

Creating ERD on MySQL - Workbench:

1. Open “MySQL workbench”


2. Choose the second column called “Data Modeling”
3. Choose “Create EER Model from existing Database” to create your ERD
based on the database you already created on MySQL administrator.
4. Click on “Store in Vault” then type the password “root”
5. Click on “Next”
6. Choose your “database name”
7. Click on “Next”
8. Click on “Execute”
9. Click on “Next”
10.Click on “Finish”

Relationship participation: Optionality/Mandatory:

- To change the relationship participation double click on the relationship


line.
- Choose the “Foreign key tab” at the bottom of the page.
- Uncheck “Mandatory” to change the participation to optional.

Save Diagram:

- Click on “File” at the top left corner.


- Choose “Save Model as”.
Note: If you closed Workbench without saving Model, you will have to
restart your computer to be able to use workbench again.

You might also like