重置自增 id

ALTER TABLE tablename auto_increment=1;
ANALYZE table tablename;

注意:修改的 auto_increment 的值需要大于现有键最大值。否则,语句不报错,也不会生效。