For this exercise, we will use the mysqldump utility the same as if we were backing up the entire database.
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.
mysqldump -d -h localhost -u root -p2Uad7as9 database01 > dumpfile.sql
Programmer by day, geek by night, The Geek, also known as Lowell Heddings, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on Google+ if you'd like.
- Published 09/11/06