I’ve been testing a database in MySQL for several months using manual deletes, updates, and other queries. It’s fair to say the DB has been abused.
I now want to upload it to my production server, but I want to start with a fresh copy. Is there a way to do this?
I don’t want to retain any data. I just want a nice, clean database to start with that hasn’t been abused with months of testing.
If you’re using mysqldump, supply the –no-data parameter:
That will create a new file structure.sql containing the CREATE TABLE statements necessary.
If you have some other administration tool that allows exporting, e.g. phpMyAdmin, you should have an option to leave out the data and only export the structure.