首先執(zhí)行命令,查看配置,如下:
show variables like '%increment%';
如果:
auto_increment_increment=2
(免費學習視頻教程推薦:mysql視頻教程)
則執(zhí)行:
set @@global.auto_increment_increment = 1; set @@auto_increment_increment =1;
如果:
auto_increment_offset=2
則執(zhí)行:
set @@global.auto_increment_offset =1; set @@auto_increment_offset =1;
相關文章教程推薦:mysql教程