How to Make a MySQL Structure DumpWhen you want to reverse engineer an existing MySQL database into DeZign for Databases you can connect to the database directly or you can make a database structure dump and import that structure dump. A dump will contain SQL statements to create the table and/or populate the table.
There are several ways to create a MySQL database structure dump. You can use the MySQL utility "mysqldump" or you can use PHPMyAdmin.
The mysqldump utility is a utility to dump a database or a collection of the database for backup or for transferring the data to another SQL server (not necessarily a MySQL server).
shell> mysqldump [OPTIONS] database [tables]
OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
OR mysqldump [OPTIONS] --all-databases [OPTIONS]
If you don't give any tables or use the --databases or --all-databases, the whole database(s) will be dumped.
You can get a list of the options your version of mysqldump supports by executing mysqldump --help.
More information can be found in MySQL's online manual:
You can also make a dump with PHPMyAdmin. Start PHPMyAdmin. Select the database. On the mainscreen you'll find "View dump (schema) of database". Select "structure only" and press "GO". The dump will be generated for you.
- DeZign for Databases: Learn more about DeZign for Databases.
- Getting started with DeZign for Databases: Start making a data model directly.
- Display data types in a diagram: Learn how to display data type and/or domain info in the entity boxes on your diagram.
- Build your next data model with DeZign for Databases trial software, available for download directly from Datanamic's download section.