com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.

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 google.com by Unknown author, 1 year ago
via Stack Overflow by Stefan Gloutnikov
, 2 years ago
Could not create connection to database server.
via Google Groups by Dilip Rathod, 2 years ago
Could not create connection to database server.
via Google Groups by Dilip Rathod, 2 years ago
Could not create connection to database server.
via Stack Overflow by RCM SAS
, 5 months ago
Could not create connection to database server.
via Stack Overflow by user1031152
, 2 years ago
Could not create connection to database server.
java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:247)
at com.mysql.jdbc.MysqlIO.(MysqlIO.java:294)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2333)

Users with the same issue

2 times, 2 months ago
Once, 6 months ago
Once, 6 months ago
Once, 7 months ago
12 times, 1 year ago

Write tip

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