MyBB Community Forums

Full Version: Error when trying to update Default Admin Permissions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
mySQL error: 1062
Duplicate entry '0' for key 1
Query: INSERT INTO mybb_adminoptions (uid) VALUES ('0')

If I run the Query in phpMyAdmin, it tells me to browse, then I get this:

SQL query: Documentation

SELECT *
FROM
WHERE CONCAT_WS( "-", uid ) = "0"
ORDER BY uid

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE CONCAT_WS("-", uid)
= "0"
ORDER B' at line 3

How do I fix it?