For some reason my AUTO_INCREMENT
for my Primary Key column is set to 260 rather than 261. There is already a row with 260 so obviously each query fails to insert.
I tried doing ALTER TABLE table_name AUTO_INCREMENT = 261
but that gave me another error:
Error: Failed to read auto-increment value from storage engine
I have tried to drop and re-assign the auto_increment but without success. Only when I reset it back to 260 does it give the duplicate Primary Key error again.
How can I reset this?