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 openmrs.org by Unknown author, 1 year ago
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
via mysql.com 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 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at com.mysql.jdbc.Util.handleNewInstance(Util.)
at com.mysql.jdbc.Util.getInstance(Util.)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.)
at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at com.mysql.jdbc.Util.handleNewInstance(Util.)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.)
at java.sql.DriverManager.getConnection(DriverManager.)
at org.openmrs.web.filter.initialization.InitializationFilter.executeStatement(InitializationFilter.)
at org.openmrs.web.filter.initialization.InitializationFilter.access$200(InitializationFilter.java:59)

Users with the same issue

3 times, 4 days ago
4 times, 1 week ago
Once, 2 months ago
4 times, 3 months ago
Once, 4 months ago

Write tip

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