I'm trying to migrate a physical server to virtual hardware. The old server runs RHEL 4 with MySQL version 4.1.12. The new server runs Ubuntu 10.04 with MySQL 5.1.41.
In order to export all the MySQL databases from the old server to the new server, I ran the following command on the old server:
Code:
mysqldump -u mysql_root -p --opt --all-databases > dump.sql
I then attempted to import them on the new server with:
Code:
mysql -u mysql_root -p < dump.sql
The command successfully imports about half the databases, but then fails when it gets to a particular table in a database for one of our custom web applications. The error message is:
Code:
ERROR 1062 (23000) at line 30268: Duplicate entry 'mostermeier-Member, PhD Thesis Committee (1 student) ' for key 'pa_description'
I've located that line in the dump.sql file, and as far as I can tell it's not actually a duplicate entry. I've also gone through dozens of bug reports and forum posts about an issue where this situation arises because a key is not set to auto-increment, but in this case the key is set to auto-increment.
I'd be very grateful for any assistance with this, as I'm not exactly a database guy and I've already tried everything I know to solve this, without success.
Bookmarks