eclipse:项目启动MySQL报错:The last packet successfully received from the server was x milliseconds ago

Posted java李杨勇

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了eclipse:项目启动MySQL报错:The last packet successfully received from the server was x milliseconds ago相关的知识,希望对你有一定的参考价值。

原因是数据库设置了连接回收时长、这个时候系统缓冲池不知道会继续使用被回收的连接导致报错

解决方法:Navicat可视化工具直接执行: wait_timeout=86400或者更大将回收空闲连接的时间变长

以上是关于eclipse:项目启动MySQL报错:The last packet successfully received from the server was x milliseconds ago的主要内容,如果未能解决你的问题,请参考以下文章