I have a mysql db with many tables. I'm starting a new farm which should contain empty versions of the same database tables.
How can I efficiently create empty database based on existing one?
|
I have a mysql db with many tables. I'm starting a new farm which should contain empty versions of the same database tables. How can I efficiently create empty database based on existing one?
| |||
|
feedback
|
|
You need to dump the source database using the | |||
|
feedback
|
|
Use See 4.5.4. mysqldump — A Database Backup Program for details. | |||
|
feedback
|
|
After you've made the dump, you can execute the SQL statements in your dump in the mysql client: mysql> . dbdump.sql If this is the same server, be sure to edit the dumpfile first to change the database name. | |||
|
feedback
|