Mysql Workbench Mysql Workbench Abstract
Total Page:16
File Type:pdf, Size:1020Kb
MySQL Workbench MySQL Workbench Abstract This manual documents the MySQL Workbench SE version 5.0 beta and the MySQL Workbench OSS version 5.0 beta. Document generated on: 2008-10-14 (revision: 12057) Copyright 2006-2008 MySQL AB, 2008 Sun Microsystems, Inc. This documentation is NOT distributed under a GPL license. Use of this documentation is subject to the following terms: You may create a printed copy of this documentation solely for your own personal use. Conversion to other formats is allowed as long as the actual content is not altered or edited in any way. You shall not publish or distribute this documentation in any form or on any media, except if you distribute the documentation in a manner sim- ilar to how Sun disseminates it (that is, electronically for download on a Web site with the software) or on a CD-ROM or similar medium, provided however that the documentation is disseminated together with the software on the same medium. Any other use, such as any dissemination of printed copies or use of this documentation, in whole or in part, in another publication, requires the prior written consent from an authorized representative of Sun Microsystems, Inc. Sun Microsystems, Inc. and MySQL AB reserve any and all rights to this documentation not expressly granted above. For more information on the terms of this license, for details on how the MySQL documentation is built and produced, or if you are interested in doing a translation, please contact us at <[email protected]>. If you want help with using MySQL, please visit either the MySQL Forums or MySQL Mailing Lists where you can discuss your issues with other MySQL users. For additional documentation on MySQL products, including translations of the documentation into other languages, and downloadable versions in vari- ety of formats, including HTML, CHM and PDF formats, see MySQL Documentation Library. Table of Contents 1. MySQL Enterprise .............................................................................................................................. 1 2. MySQL Workbench Editions ................................................................................................................. 2 3. Installing MySQL Workbench ................................................................................................................ 3 3.1. Installing MySQL Workbench on Windows ...................................................................................... 3 3.2. Starting MySQL Workbench ........................................................................................................ 3 3.3. Uninstalling MySQL Workbench – Windows .................................................................................... 4 4. MySQL Workbench Tutorials ................................................................................................................. 5 4.1. Importing a Data Definition SQL Script ........................................................................................... 5 4.1.1. Adding an EER Diagram .................................................................................................. 5 4.2. Using the Default Schema ........................................................................................................... 6 4.2.1. Creating a New Table ...................................................................................................... 7 4.2.2. Creating Other Schema Objects .......................................................................................... 7 4.3. Basic Modeling ....................................................................................................................... 7 4.3.1. Adding a Table .............................................................................................................. 8 4.3.2. Create a Foreign Key ....................................................................................................... 8 5. Documenting the sakila Database ......................................................................................................... 9 5.1. A PNG File of the sakila Database ............................................................................................. 9 6. MySQL Workbench Reference ..............................................................................................................11 6.1. The Application Windows ..........................................................................................................11 6.1.1. The Application Layout ..................................................................................................11 6.1.2. Docking and Undocking Windows ......................................................................................12 6.2. MySQL Workbench Menus ........................................................................................................12 6.2.1. The File Menu .............................................................................................................12 6.2.2. The Edit Menu .............................................................................................................13 6.2.3. The View Menu ............................................................................................................15 6.2.4. The Arrange Menu ........................................................................................................15 6.2.5. The Model Menu ..........................................................................................................16 6.2.6. The Database Menu (Commercial Version) ...........................................................................20 6.2.7. The Plug-ins Menu ........................................................................................................20 6.2.8. The Tools Menu ...........................................................................................................20 6.2.9. The Community Menu ....................................................................................................25 6.2.10. The Help Menu ...........................................................................................................25 6.3. The Toolbar ...........................................................................................................................26 6.3.1. Tool-specific Toolbar Items ..............................................................................................26 6.4. MySQL Model Page .................................................................................................................26 6.4.1. EER Diagrams .............................................................................................................27 6.4.2. The Physical Schemata ...................................................................................................27 6.4.3. Schema Privileges (Commercial Version) .............................................................................28 6.4.4. SQL Scripts and Model Notes ...........................................................................................30 6.5. An EER Diagram Canvas ...........................................................................................................30 6.5.1. The Vertical Toolbar ......................................................................................................30 6.6. The Model Navigator Palette .......................................................................................................33 6.7. The Catalog and Layers Palettes ...................................................................................................34 6.7.1. The Catalog Palette ........................................................................................................34 6.7.2. The Layers Palette .........................................................................................................35 6.8. The Properties and History Palettes ...............................................................................................35 6.8.1. The Properties Palette .....................................................................................................35 6.8.2. The History Palette ........................................................................................................36 7. Creating Tables .................................................................................................................................37 7.1. Adding Tables to the Physical Schemata .........................................................................................37 7.2. Adding Tables to an EER Diagram ...............................................................................................37 7.3. The MySQL Table Editor ..........................................................................................................38 7.3.1. The Main Editor Window ................................................................................................38 7.3.2. The Table Tab ..............................................................................................................39 7.3.3. The Columns Tab ..........................................................................................................39 7.3.4. The Indexes Tab ...........................................................................................................40 7.3.5. The Foreign Keys Tab ....................................................................................................41