This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here

Skip to main content

Just Host Web Hosting Help

MySQL dump of tables only no data

The command line option in SSH is:
                 mysqldump -d -u username_user -p username_dbname > file.sql
              
Where "username_dbname" is the name of your database, and "file.sql" is the name of the file you would like to write the table structure to. It will prompt you for a password (-p) and this is required. Normally, mysqldump gives you the entire database, with the "-d" option, you tell it to not include the data, but just the table structure.

Click Here for information on requesting SSH access.

Knowledgebase Article 201,031 views bookmark tags: dump mysql ssh structure table


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

This article will instruct you how to export a database from the command line (SSH).
Knowledgebase Article 687,019 views tags: database mysql ssh

This article will instruct you how to import a database from the command line (SSH).
Knowledgebase Article 600,844 views tags: database mysql ssh

A step by step guide on how to manipulate data in your mySQL tables using phpMyAdmin
Knowledgebase Article 75,354 views tags: databases mysql phpmyadmin

Related Help Content

Guidance on adding tables to your mySQL database in phpMyAdmin
Knowledgebase Article 43,624 views tags: mysql phpmyadmin

How to repair and optimize your database using phpMyAdmin:
Knowledgebase Article 280,880 views tags: database mysql optimizing repairing slow speed

This article will explain MySQL database and user creation and deletion, and explain how to assign a user to a database.
Knowledgebase Article 642,252 views tags: creation database mysql

This article will show you how to rename a database table in phpMyAdmin.
Knowledgebase Article 144,242 views tags: databases mysql phpmyadmin

I need to Export or Import a MySQL database
Knowledgebase Article 326,509 views tags: mysql phpmyadmin ssh

How do I make my MySQL database compatible with the version you provide?
Knowledgebase Article 115,671 views tags: compatible database mysql

This article will explain how to change the password for a database in the event that the original password is lost.
Knowledgebase Article 99,667 views tags: database mysql password

A repository of information on how you can manage your database by using the phpMyAdmin interface.
Knowledgebase Article 250,670 views tags: commands database mysql phpmyadmin

** Google ad credits are only available to customers in the United States, Canada, and the United Kingdom at this time.

¹ VAT (Value Added Tax) is not included in our advertised price and will be charged separately and itemized on invoices and billing information. Standard VAT rates based on EU Member State regulations may apply. Learn more.