The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
其实这种情况是没有连接到数据库,可以看到 Connection refused 连接被拒绝
1.那么就查一下你的配置文件吧 可能数据库的url被改了
2.如果你是自己写demo的话可能是你的数据库服务关了
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
其实这种情况是没有连接到数据库,可以看到 Connection refused 连接被拒绝
1.那么就查一下你的配置文件吧 可能数据库的url被改了
2.如果你是自己写demo的话可能是你的数据库服务关了