Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.