首先執(zhí)行命令,查看配置,如下:
show variables like '%increment%';
如果:
auto_increment_increment=2
(免費學(xué)習(xí)視頻教程推薦: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;
相關(guān)文章教程推薦:mysql教程