workbench-en.a4
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
MySQL Workb<strong>en</strong>ch Refer<strong>en</strong>ce<br />
Use the Add Diagram icon in this area to create EER diagrams. Wh<strong>en</strong> you add an EER diagram a new tab appears below the<br />
toolbar. Use this tab to navigate to the newly created EER diagram. EER Diagrams are discussed in depth in Section 6.5, “An EER<br />
Diagram Canvas”.<br />
If you do not wish to have your EER diagrams as docked or tabbed windows you may change this. For more information, see Section<br />
6.1.2, “Docking and Undocking Windows”.<br />
6.4.2. The Physical Schemata<br />
The Physical Schemata panel of the MySQL Model page shows the active schemata and the objects that they contain.<br />
Expand and contract the Physical Schemata section by double clicking the arrow on the left of the Physical Schemata<br />
title bar. Wh<strong>en</strong> the Physical Schemata section is expanded, all the schemata that are curr<strong>en</strong>tly loaded are displayed.<br />
Each schema shows as a tab; a specific schema is selected by clicking its tab. Wh<strong>en</strong> MySQL Workb<strong>en</strong>ch is first op<strong>en</strong>ed a default<br />
schema, mydb is selected. You can start working with this schema or you can load a new MySQL Workb<strong>en</strong>ch Models (MWB) file.<br />
There are a variety of ways to add schema to the Physical Schemata panel. You can op<strong>en</strong> an MWB file, reverse <strong>en</strong>gineer a<br />
MySQL create script, or, if you are using a commercial version of MySQL Workb<strong>en</strong>ch, you can reverse <strong>en</strong>gineer a database by<br />
connecting to a MySQL server.<br />
You can also add a new schema by clicking the + button on the top right of the Physical Schemata panel. To remove a<br />
schema, click its tab and use the - button found to the immediate left of the + button. To the left of these buttons are three buttons<br />
that control the way database object icons are displayed. The left-most button displays database objects as large icons, the next button<br />
to the right displays small icons in multiple rows, and the last button displays small icons in a single list.<br />
To expand the Physical Schemata window move the mouse pointer anywhere over the gray area that defines the lower edge of the<br />
Physical Schemata panel. Hold down the right mouse button and move the mouse to adjust the size of the window.<br />
6.4.2.1. Schema Objects<br />
The Physical Schemata panel is divided up into the following sections:<br />
• Tables<br />
• Views<br />
• Routines<br />
• Routine Groups<br />
Each section contains the specified database objects and an icon used for creating additional objects.<br />
Any objects added to the Physical Schemata show up in the Catalog palette docked on the right side of the application.<br />
Any database objects added to an EER diagram canvas also show up in the Physical Schemata section. For information<br />
about adding objects to an EER diagram canvas see Section 6.5, “An EER Diagram Canvas”.<br />
6.4.3. Schema Privileges (Commercial Version)<br />
The Privileges panel of the MySQL Model page is used to create users for your schemata and also to define roles — making<br />
it much easier to assign the same rights to differ<strong>en</strong>t users or differ<strong>en</strong>t rights to differ<strong>en</strong>t users.<br />
Note<br />
This feature is not available in the MySQL Workb<strong>en</strong>ch OSS version.<br />
The Schema Privileges panel is divided up into the following sections:<br />
• Users<br />
• Roles<br />
The following image displays the Schema Privileges section of the MySQL Model tab.<br />
Figure 6.8. Roles and privileges<br />
28