mysql数据自增ID为2的解决办法
发表于:2022-03-30 15:58:45浏览:2803次
查看配置
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;
栏目分类全部>
推荐文章
- Linux小技巧之:两种方法统计访问web网站的前10个IP
- windows cmd “Loaded Configuration File none”未加载php.ini的解决办法
- Laravel8入门教程(一):Laravel8的安装与环境搭建
- JavaScript之干货(一)---走进JS世界
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length
- 手把手教你在linux下搭建mysql多主多从
- windows批处理,批量替换文件、文件夹名中的空格
- 开发人员常用工具或插件整理(持续更新)
- PHP中 empty() 和 isset() 的区别
- mysql 更新json数据中文防止被转义
