The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

linux连接Mysql时报错
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- 皮蛋不吃粥 2022-05-24 11:33关注
看下地址是否正确,在mysql改一下配置
在my.cnf中加入: [mysqld] wait_timeout=31536000 interactive_timeout=31536000
解决 无用评论 打赏 举报