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冲突了。第一次遇到这个问题,记录下!

你可能感兴趣的:(server)