Bug #66410 | autoincrement seed reset on server restart | ||
---|---|---|---|
Submitted: | 16 Aug 2012 1:29 | Modified: | 19 Sep 2012 9:14 |
Reporter: | Hearth Stone | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Information schema | Severity: | S2 (Serious) |
Version: | 5.5.16 & 5.5.20 | OS: | Windows (7/2003/2008) |
Assigned to: | CPU Architecture: | Any | |
Tags: | autoincrement reset |
[16 Aug 2012 1:29]
Hearth Stone
[19 Aug 2012 9:14]
Valeriy Kravchuk
Your table is InnoDB one it seems (this engine is used by default in 5.5). For InnoDB tables this is expected and documented behavior, see http://dev.mysql.com/doc/refman/5.5/en/innodb-auto-increment-handling.html: "InnoDB uses the following algorithm to initialize the auto-increment counter for a table t that contains an AUTO_INCREMENT column named ai_col: After a server startup, for the first insert into a table t, InnoDB executes the equivalent of this statement: SELECT MAX(ai_col) FROM t FOR UPDATE; InnoDB increments the value retrieved by the statement and assigns it to the column and to the auto-increment counter for the table." You can try to use MyISAM tables or try to track those deleted values somehow...
[20 Sep 2012 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".