com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by zhouwenbin2000
, 2 years ago
Communications link failure Last packet sent to the server was 20 ms ago.
via mysql.com by Unknown author, 1 year ago
Communications link failure Last packet sent to the server was 49 ms ago.
via mysql.com by Unknown author, 2 years ago
Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
via ubuntuforums.org by Unknown author, 1 year ago
Communications link failure Last packet sent to the server was 0 ms ago.
via codeproject.com by Unknown author, 2 years ago
Communications link failure   Last packet sent to the server was 0 ms ago.
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

Users with the same issue

339 times, 5 hours ago
3 times, 4 days ago
4 times, 5 days ago
39 times, 2 weeks ago
Once, 1 month ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.