MySQL Forums
Forum List  »  Backup

Re: Error 1062 while restoring backup
Posted by: Rick James
Date: March 13, 2013 11:38PM

> 2. mysqldump -uuser -ppass db3 > db3.sql (size is 6G)

Are you sure this did not drop the database and recreate it? Hopefully it has TABLE statements, but not DATABASE statements.

I see no FOREIGN KEYS, so that is not an issue. PRIMARY KEYs are find for reloading. In fact, they are desirable in InnoDB. There are no other UNIQUE keys to have caused "duplicate key".

> (db4 was a newly created blank database)

I know you say that, but if there were already non-empty tables in that database, that would cause trouble.

Options: ReplyQuote


Subject
Views
Written By
Posted
7905
January 19, 2013 09:39PM
2514
January 20, 2013 10:24PM
2706
January 20, 2013 11:21PM
2082
January 23, 2013 03:30AM
Re: Error 1062 while restoring backup
2306
March 13, 2013 11:38PM


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.