mysql数据自增ID为2的解决办法
发表于:2022-03-30 15:58:45浏览:2804次
查看配置
show variables like '%increment%';
如果:
auto_increment_increment=2
执行:
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;
栏目分类全部>
推荐文章
- 数组合并的方式 + 和 array_merage
- TP6便捷快速查询日、月、年数据的方法
- win10系统重装应用商店:安装路径不存在 该怎么办?
- 微信H5版使用php Ffmpeg将微信录音amr转mp3
- php面向对象什么意思,全面解析PHP面向对象的三大特征
- Linux下搭建SVN服务器及自动更新项目文件到web发布目录(www)
- 不写一行代码,完成一份最小可运行性的爬虫代码
- mysql5.7*分组排序 取最新的一条
- 解决composer install遇到:Your requirements could not be resolved to an installable set of packages
- 实用技能:60个常用的Linux命令
