首先執(zhí)行命令,查看配置,如下:
show?variables?like?'%increment%';
如果:
auto_increment_increment=2
(免費(fèi)學(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視頻教程
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載。
THE END
喜歡就支持一下吧
相關(guān)推薦