What to do if the auto-increment value reaches its limit?
问题 I am doing a little research for a problem that might occur someday. Lets say you have an InnoDB MySQL table with an id and a name field. the id field has BIGINT(20) and is AUTO_INCREMENT plus its the primary key. What do you do in a case that this table is full which means we have reached the limit on the id and no auto increment number can be generated anymore. 回答1: Let's assume a table structure like: CREATE TABLE `tbl` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) );