19.10.2015 Views

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.

Table of Cont<strong>en</strong>ts<br />

1. MySQL Enterprise .........................................................................................................................1<br />

2. MySQL Workb<strong>en</strong>ch Editions ............................................................................................................2<br />

3. Installing MySQL Workb<strong>en</strong>ch ...........................................................................................................3<br />

3.1. Installing MySQL Workb<strong>en</strong>ch on Windows .................................................................................3<br />

3.2. Starting MySQL Workb<strong>en</strong>ch ...................................................................................................3<br />

3.3. Uninstalling MySQL Workb<strong>en</strong>ch – Windows ...............................................................................4<br />

4. MySQL Workb<strong>en</strong>ch Tutorials ............................................................................................................5<br />

4.1. Importing a Data Definition SQL Script ......................................................................................5<br />

4.1.1. Adding an EER Diagram .............................................................................................5<br />

4.2. Using the Default Schema ......................................................................................................6<br />

4.2.1. Creating a New Table .................................................................................................7<br />

4.2.2. Creating Other Schema Objects .....................................................................................7<br />

4.3. Basic Modeling ..................................................................................................................7<br />

4.3.1. Adding a Table .........................................................................................................7<br />

4.3.2. Create a Foreign Key ..................................................................................................8<br />

5. Docum<strong>en</strong>ting the sakila Database ....................................................................................................9<br />

5.1. A PNG File of the sakila Database ........................................................................................9<br />

6. MySQL Workb<strong>en</strong>ch Refer<strong>en</strong>ce ........................................................................................................ 11<br />

6.1. The Application Windows .................................................................................................... 11<br />

6.1.1. The Application Layout ............................................................................................ 11<br />

6.1.2. Docking and Undocking Windows ................................................................................ 12<br />

6.2. MySQL Workb<strong>en</strong>ch M<strong>en</strong>us .................................................................................................. 12<br />

6.2.1. The File M<strong>en</strong>u ....................................................................................................... 12<br />

6.2.2. The Edit M<strong>en</strong>u ....................................................................................................... 13<br />

6.2.3. The View M<strong>en</strong>u ...................................................................................................... 15<br />

6.2.4. The Arrange M<strong>en</strong>u .................................................................................................. 15<br />

6.2.5. The Model M<strong>en</strong>u .................................................................................................... 16<br />

6.2.6. The Database M<strong>en</strong>u (Commercial Version) ..................................................................... 20<br />

6.2.7. The Plug-ins M<strong>en</strong>u .................................................................................................. 21<br />

6.2.8. The Tools M<strong>en</strong>u ..................................................................................................... 21<br />

6.2.9. The Community M<strong>en</strong>u .............................................................................................. 25<br />

6.2.10. The Help M<strong>en</strong>u ..................................................................................................... 26<br />

6.3. The Toolbar ..................................................................................................................... 26<br />

6.3.1. Tool-specific Toolbar Items ........................................................................................ 26<br />

6.4. MySQL Model Page ........................................................................................................... 27<br />

6.4.1. EER Diagrams ....................................................................................................... 27<br />

6.4.2. The Physical Schemata ............................................................................................. 28<br />

6.4.3. Schema Privileges (Commercial Version) ....................................................................... 28<br />

6.4.4. SQL Scripts and Model Notes ..................................................................................... 30<br />

6.5. An EER Diagram Canvas ..................................................................................................... 30<br />

6.5.1. The Vertical Toolbar ................................................................................................ 30<br />

6.6. The Model Navigator Palette ................................................................................................. 33<br />

6.7. The Catalog and Layers Palettes ............................................................................................. 34<br />

6.7.1. The Catalog Palette .................................................................................................. 34<br />

6.7.2. The Layers Palette ................................................................................................... 34<br />

6.8. The Properties and History Palettes ......................................................................................... 35<br />

6.8.1. The Properties Palette ............................................................................................... 35<br />

6.8.2. The History Palette .................................................................................................. 35<br />

7. Creating Tables ........................................................................................................................... 36<br />

7.1. Adding Tables to the Physical Schemata ................................................................................... 36<br />

7.2. Adding Tables to an EER Diagram ......................................................................................... 36<br />

7.3. The MySQL Table Editor .................................................................................................... 37<br />

7.3.1. The Main Editor Window .......................................................................................... 37<br />

7.3.2. The Table Tab ........................................................................................................ 38<br />

7.3.3. The Columns Tab .................................................................................................... 38<br />

7.3.4. The Indexes Tab ..................................................................................................... 39<br />

7.3.5. The Foreign Keys Tab .............................................................................................. 40<br />

7.3.6. The Triggers Tab .................................................................................................... 40<br />

7.3.7. The Partitioning Tab ................................................................................................ 40<br />

7.3.8. The Options Tab ..................................................................................................... 41<br />

7.3.9. The Inserts Tab ...................................................................................................... 42<br />

7.3.10. The Privileges Tab ................................................................................................. 42<br />

8. Creating Foreign Key Relationships ................................................................................................... 43<br />

8.1. Adding Foreign Key Relationships Using an EER Diagram ............................................................ 43<br />

iv

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!