MySQL – How to Export Just the Structure of a Database

exportMySQLphpmyadminUbuntu

I use Ubuntu 14.10 and PhpMyAdmin.

I have a 'big' MySQL database, the size is 900MB. I need just the structure of this database, to use it on my local machine. How can I export the structure only?

Best Answer

Since you specifically asked about phpMyAdmin and the previous answers, while correct, are both about doing this on the command line:

Navigate to the database you wish to export. Across the top row of tabs click "Export"

phpMyAdmin export tab

Next, click the Custom radio button

Custom export type radio button

Halfway down the "Format-specific options" area, select "structure" (the default is "structure and data") Structure/Data/Structure and Data export types

Check the other options and press Go to download your .sql file with no data, only the table structure.