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

今天项目中报了如下错误

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

查了下网上,都是说是mysql默认8小时关闭不用的连接。用数据库连接池导致的。可是项目中这个功能是用来导数据的,是动态连接,直接java jdbc 获取connection的,用完之后就关闭了。最后运维的人员查出来是ip冲突了。第一次遇到这个问题,记录下!

上一篇:活跃天数计算用户等级模仿QQ的升级方式


下一篇:Lodop6 以上打印控件使用,详参考自带说明文档,打印样式及文字大小要特殊设置一下