首先执行命令,查看配置,如下:
show variables like '%increment%';
如果:
auto_increment_increment=2
(免费学习视频教程推荐:mysql视频教程)
则执行:
set @@global.auto_increment_increment = 1; set @@auto_increment_increment =1;
如果:
auto_increment_offset=2
则执行:
set @@global.auto_increment_offset =1; set @@auto_increment_offset =1;
相关文章教程推荐:mysql视频教程
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
喜欢就支持一下吧
相关推荐