首先執行命令,查看配置,如下:
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
喜歡就支持一下吧
相關推薦