com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

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 mysql.com by Unknown author, 1 year ago
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
via openmrs.org by Unknown author, 1 year ago
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
via shitaraba.net by Unknown author, 2 years ago
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
via Atlassian JIRA by Przemek Bruski, 1 year ago
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
via infoglue by dgaethofs
, 1 year ago
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
via Atlassian JIRA by Przemek Bruski, 1 year ago
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2431)
at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:590)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1069)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2181)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:718)
at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at undefined.TestMySQLConnection.main(TestMySQLConnection.java:6)

Users with the same issue

10 times, 4 months ago
Once, 4 months ago
4 times, 4 months ago
2 times, 5 months ago
Once, 9 months ago
19 more bugmates

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