0 like 0 dislike
50 views
Dump just the table structure to a file in MySQL
in Education & Reference by (2.4k points) | 50 views

1 Answer

0 like 0 dislike

Syntax:

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

The only option that is different than creating an entire backup is the -d switch, which tells mysqldump not to output the data.

Example:

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

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 25, 2015 in Education & Reference by Simmi (520 points) | 133 views
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,199 questions
1,345 answers
408 comments
1,889 users