MySQL Forums
Forum List  »  Newbie

Re: Backup mysqldump
Posted by: Kai Voigt
Date: July 12, 2005 09:07PM

The reason for the error is that you got a table "admin" in your backup that already exists in your running database. There're only two solutions to handle it. Either drop your existing "admin" table and apply the commands from mysql.dbs again, or open mysql.dbs in a text editor and remove the commands related to the "admin" table.

If you want existing tables automatically deleted when applying a backup file, use the --add-drop-table option when running mysqldump. This will include commands to drop an existing table when the data is being restored.

--
Kai Voigt, Senior Instructor, MySQL AB
kai@mysql.com, www.mysql.com
Office: Kiel, Germany

Options: ReplyQuote


Subject
Written By
Posted
July 12, 2005 09:58AM
Re: Backup mysqldump
July 12, 2005 09:07PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.