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.
Subject
Views
Written By
Posted
8063
January 19, 2013 09:39PM
2553
January 20, 2013 10:24PM
2756
January 20, 2013 11:21PM
2121
January 23, 2013 03:30AM
2463
March 13, 2013 10:01PM
Re: Error 1062 while restoring backup
2353
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.