Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Table structure to a file

This is a discussion on Table structure to a file within the MySQL forums, part of the Database category; In MySQL How do I dump only the table structure to a file? Matrix_2006...

  1. #1
    Matrix_2006 is offline Junior Member Array
    Join Date
    Jan 2006
    Answers
    5

    Table structure to a file

    In MySQL How do I dump only the table structure to a file?

    Matrix_2006


  2. #2
    norman is offline Member Array
    Join Date
    May 2006
    Answers
    43
    You can use the option -d with mysqldump to dump only the table structure to a file.

    The syntax is as below:

    mysqldump -d -h localhost -u root -pmypassword databasename > dumpfile.sql


Latest Article

Network Security Risk Assessment and Measurement

Read More...