Error Duplicate Entry :)


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

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

Jake Bunce

XenForo moderator
Staff member
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.