Home Databases mySql How to Export your MySQL database schema to a file using the Command Line?
 
 
 

How to Export your MySQL database schema to a file using the Command Line?

PDF Print E-mail

Question: How to Export your MySQL database schema to a file using the Command Line?

 

Answer: 

Use the following command in the Command Line Interface

mysqldump --no-data --tables -uMYSQL_USER_NAME -pMYSQL_PASSWORD MYSQLDATABASE >> FILE_NAME.sql

Replace MYSQL_USER_NAME with your username,  MYSQL_PASSWORD with your password, MYSQLDATABASE with the database name you want to export and FILE_NAME.sql with the file that you wish to export the schema to.

+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!