Re: mysqldump restore triggers error 1062
Okay...
This lets me import the database; however, I still have two questions:
1. When I dump the imported database back out, all my keys are shifted; ie instead of
INSERT INTO groups VALUES (0,'Administrators'),(1,'Anonymous'),(2,'File Admin'),(3,'Company');
...it says:
INSERT INTO groups VALUES (1,'Administrators'),(2,'Anonymous'),(3,'File Admin'),(4,'Company');
Is that going to be a problem if my group keys have all changed by one? Especially since no other tables have changed? (ie this, plus the server version, is the only line that is detected as a change when I diff the original dump and the dump of the restored database).
2. Is there some way to make mysqldump export the file in such a way that it will import back in cleanly? It seems wrong to have to mess with the dump file just to make it import again.
Edited 1 time(s). Last edit at 04/10/2006 09:11AM by David Mackintosh.