Jump to content

need help @ importing a large db


N4XX

Recommended Posts

Hello, I try to import a large database in PHPMYADMIN.

Ive run the command mysql -u root DBNAME < path.sql, thus created some tables, but i got the error - "ERROR 1062 (23000) at line xx: Duplicate entry 'xx' for key 'PRIMARY". How can i fix this? -_- ? :/

i dunno what to do......

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.