• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Error Duplicate Entry :)

Slavik

XenForo moderator
Staff member
#2
What are you trying to do? But try running

Code:
mysqlcheck --auto-repair=true -uroot -p databasename
 

Jake Bunce

XenForo moderator
Staff member
#5
Do you have a more complete error with a stack trace?

I have seen issues before where the autoincrement fields are no longer defined in the schema following a botched backup / restore of a database. You should check your schema using a program like phpmyadmin. Or try a different backup if you have one.