摘要: 今天发现在新电脑上的mysql新插入的数据自增id不是连续的,步长为2 查看当前步长 show variables like '%increment%'; auto_increment_increment 2auto_increment_offset 1 1.使用命令修改 set @@global. 阅读全文
posted @ 2024-04-02 12:45 慕尘 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 今天发现刚移植过来的代码,数据库链接报错 connect ECONNREFUSED ::1:3306,把localhost解析成了 ::1,这是因为windows11中IPv6优先级设置高于IPv4 解决方法,修改数据库配置 const database = { HOST: '127.0.0.1', 阅读全文
posted @ 2024-04-02 11:57 慕尘 阅读(167) 评论(0) 推荐(0) 编辑