Examples and Tools for Database Design - Using Tools for Database Design
(Page 3 of 4 )
It’s a good idea to use a tool to draw your ER diagrams; this way, you can easily edit diagrams as you refine your designs, and the final diagram is clear and unambiguous. There are a large number of programs that can be used for this purpose. A good free tool that is available for both Linux and Windows is Dia; you can download the latest version from http://www.gnome.org/projects/dia. Mac OS X users can use the Omni-
Figure 4-14. Using the Dia program to draw an ER diagram
Graffle program that comes bundled with the operating system. Windows users can also use Microsoft Visio.
You can assign properties to shapes by double-clicking on them. For example, you can mark an attribute as being a key or a weak key, and you can mark an entity’s participation in a relation as being total or partial.
The open source MySQL Workbench program is a very powerful visual database design tool available as part of the MySQL GUI Tools Bundle from the MySQL AB downloads page at http://dev.mysql.com/downloads.
A very useful feature of MySQL Workbench is that it can export your design as SQL statements ready to use on a MySQL database. Even better, it can connect to a MySQL database to export a design directly. You can also reverse-engineer an ER model from an existing database, edit the model, and then export the modified design back to the
Figure 4-15. A screenshot of the MySQL Workbench program to design the Flight database
MySQL database. Note that this program is currently in the beta testing phase, so you should use it with care.