Jump to content

need help @ importing a large db


N4XX

Recommended Posts

The field defined as the PRIMARY KEY, or any field (or field group) with a UNIQUE index can't contain duplicate values. If you've attempted the import more than once, it could be that some data was inserted, and you're now trying to import the same data again. If not, you'll have to examine the data you're trying to import and see where the duplication is.

Then there's a duplicated index in the dump. Which means you'll have to go through it, identify the problematic line, and manually alter it. You may also need to change any references to it, if it is used as a foreign key in some other table.

Oh.... Then I'd try to export the data again, using mysqldump. That should give you a correct replica of the database.

If there still are duplicate keys then the problem lies in the original database, and you'll need to fix that before exporting.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.