| | #1 |
| HyperActive Warrior Registered Member |
Warriors- I am trying to copy a development copy of my site to my production server- however when i try to upload my SQL database I get the following error #1062 - Duplicate entry '153' for key 'id' has anyone encountered this before? Im not sure where else to turn thanks Peter |
| |
| | #2 |
| 9TO5Host.com Join Date: 2012
Posts: 51
Thanks: 18
Thanked 9 Times in 8 Posts
|
Reset identity to 154 it will fix it Cheers |
| |
| | #3 | |
| GCP AWS Cloud Developer Join Date: 2007 Location: Chennai, India.
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
|
| |
|
Chris, Developer, Chrisranjana.com, AWS Developer GCP Engineer Python NodeJS Programmer | ||
| |
| | #4 |
| Warrior Member Join Date: 2013
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
|
no need to delete. Changing it to 154 will resolve it :/
|
| |
| | #5 |
| Active Warrior War Room Member Join Date: 2013
Posts: 48
Thanks: 0
Thanked 9 Times in 9 Posts
| |
| |
| | #6 | |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
|
Is possible that the table already has a row with id 153? in that case you need update your source SQL (remove conflicting ids, replace them with unique values) before importing it to the new DB. Or clear the new table and try importing the SQL again. | |
| | ||
| |
|
| Bookmarks |
| Tags |
| #1062, error, fixing, mysql |
| |