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

项目启动时,jdbc报错:

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

百度之,似乎可以理解为mysql无响应,于是检查两个地方:

1. mysql服务是否可用

2.  端口号是否写错(我就是端口号写成3366了囧)

 

欢迎补充。

你可能感兴趣的:(java)