Claim your Biolink Click Here
0 like 0 dislike
258 views
Dump just the table structure to a file in MySQL
in Education & Reference by (4.7k points) | 258 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

1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Sep 15, 2017 in Education & Reference by Krish (1.1k points) | 334 views
0 like 0 dislike
1 answer
asked May 26, 2015 in Education & Reference by Simmi (820 points) | 440 views
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
2 like 0 dislike
1 answer
2 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,310 questions
1,471 answers
569 comments
4,809 users