Dump just the table structure to a file in MySQL

Dump just the table structure to a file in MySQL

For this exercise, we will use the mysqldump utility the same as if we were backing up the entire database.
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 -p2Uad7as9 database01 > dumpfile.sql
Dump just the table structure to a file in MySQL Dump just the table structure to a file in MySQL Reviewed by Pakainfo on August 08, 2018 Rating: 5

No comments:

'Heartbroken' family of Nigerian man who died at Calgary airport wants answers

'Heartbroken' family of Nigerian man who died at Calgary airport wants answers Bolante Idowu Alo died following altercation wit...

Powered by Blogger.