InnoDB AUTO_INCREMENT_ID Values are Lost or Reset to Highest Un-used Value after Server Restart

(Doc ID 1957369.1)

Last updated on NOVEMBER 15, 2017

Applies to:

MySQL Server - Version 5.1 and later
Information in this document applies to any platform.


After a server restart (or in some cases, after the table was un-used and closed) the AUTO_INCREMENT_ID may be reset to the maximum value currently stored in the table, forgetting about previously used values that have since been removed.

This is likely to occur and become a problem in situations where data is archive into another table or data source and removed from the table.


 Not Applicable.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms