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 reddit.com by Unknown author, 2 years ago
Could not create connection to database server. Attempted reconnect 4 times. Giving up.
via spigotmc.org by Unknown author, 1 year ago
Could not create connection to database server. Attempted reconnect 4 times. Giving up.
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 4 times. Giving up.	at sun.reflect.GeneratedConstructorAccessor77.newInstance(Unknown Source)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)	at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)	at com.mysql.jdbc.Util.getInstance(Util.java:382)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)	at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2239)	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2168)	at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:794)	at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)	at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)	at java.sql.DriverManager.getConnection(DriverManager.java:579)	at java.sql.DriverManager.getConnection(DriverManager.java:190)	at me.ryanhamshire.GriefPrevention.DatabaseDataStore.refreshDataConnection(DatabaseDataStore.java:636)	at me.ryanhamshire.GriefPrevention.DatabaseDataStore.initialize(DatabaseDataStore.java:65)	at me.ryanhamshire.GriefPrevention.DatabaseDataStore.(DatabaseDataStore.java:46)	at me.ryanhamshire.GriefPrevention.GriefPrevention.onEnable(GriefPrevention.java:202)	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335)	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)	at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugin(CraftServer.java:356)	at org.bukkit.craftbukkit.v1_8_R2.CraftServer.enablePlugins(CraftServer.java:316)	at net.minecraft.server.v1_8_R2.MinecraftServer.r(MinecraftServer.java:416)	at net.minecraft.server.v1_8_R2.MinecraftServer.k(MinecraftServer.java:382)	at net.minecraft.server.v1_8_R2.MinecraftServer.a(MinecraftServer.java:337)	at net.minecraft.server.v1_8_R2.DedicatedServer.init(DedicatedServer.java:257)	at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:522)	at java.lang.Thread.run(Thread.java:722)