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.
Figure 4-15 shows a screenshot of using MySQL Workbench to design the flight database. You can select tables and relations from the toolbar icons
on the left of the screen, and double-click on each object to set properties such as attributes and relationship cardinality. Avery 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 MySQLdatabase 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 theMySQL database. Note that this program is currently in the beta testing phase, so you should use it with care.
Figure 4-15. A screenshot of the MySQL Workbench program to design the Flight databaseShare with your friends: