其他分享
首页 > 其他分享> > The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received

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

作者:互联网

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

The error may exist in com/itheima/mapper/UserMapper.java (best guess)

The error may involve com.itheima.mapper.UserMapper.login

The error occurred while executing a query

Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

这种请况:解决办法
1.断开数据库,重启linux系统,再重新连接数据库
2.代码数据库SQL语句、注解中的SQL 大小写没有与数据库的一致
3.有单词写错
4.有代码顺序写错

标签:ago,received,last,数据库,successfully,packet,server,error,com
来源: https://blog.csdn.net/weixin_50622904/article/details/119172074