使用连接池访问mysql数据库查询列表数据出现
我的mysql版本是5.5.62
Communications link failure,The last packet successfully received from the server was 0 millisecond ago.The last packet successfully sent to the server was 0 millisecond ago报错
我的情况是列表查询出来不一会儿就会出现报错,而且是持续报一样The last packet sent successfully to the server was 0 milliseconds ago的错误
我的解决办法
在mysql下的my.ini文件(在mysql安装路径下)中添加配置
问题解决
[mysqld]
wait_timeout=31536000
interactive_timeout=31536000
但这只能并没有解决根本问题........
因为这个是关于MySQL的wait_timeout连接超时问题报错
具体解释是这样的:Mysql服务器默认的“wait_timeout”是