Recently, I received this error from MySQL:
Failed to read auto-increment value from storage engine
Turning towards these SO questions:
- Error: Failed to read auto-increment value from storage engine
- mysql Failed to read auto-increment value from storage engine
I realized I needed to increase the size of the auto_increment
field so we could keep adding records to our database. I increased the size of the field from int
to bigint unsigned
, but the auto_increment
size for the table didn't increase when I changed the field.
In other words, when using show table status
, my table is showing AUTO_INCREMENT=2147483655
before and after I updated the column (which obviously defeats the purpose of the update).
Is there anyway that I can fix my table so that it correctly shows the max size of the auto_increment
field (AUTO_INCREMENT=18446744073709551615
) without having to recreate the table?
I've tried dropping auto_increment
from the field and re-adding it back, but that didn't work.