ru.tehkode.permissions.exceptions.PermissionBackendException

Unable to connect to SQL database

Samebug tips3

Firewall might be blocking your connection, or MySQL it's not running on your server machine.

Check if you have started your server, or if your server is set to listen to the port you're trying to connect and is waiting to accept connections and check if the firewall isn't blocking your connection.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web5

  • Unable to connect to SQL database
  • via GitHub by Gerolmed
    , 1 year ago
    Unable to connect to SQL database
  • via GitHub by liuqilili
    , 11 months ago
    Unable to connect to SQL database
  • Stack trace

    • ru.tehkode.permissions.exceptions.PermissionBackendException: Unable to connect to SQL database at ru.tehkode.permissions.backends.sql.SQLBackend.<init>(SQLBackend.java:118)[PermissionsEx-1.23.3.jar:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[?:1.8.0_101] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)[?:1.8.0_101] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)[?:1.8.0_101] at java.lang.reflect.Constructor.newInstance(Unknown Source)[?:1.8.0_101] at ru.tehkode.permissions.backends.PermissionBackend.getBackend(PermissionBackend.java:392)[PermissionsEx-1.23.3.jar:?] at ru.tehkode.permissions.backends.PermissionBackend.getBackend(PermissionBackend.java:367)[PermissionsEx-1.23.3.jar:?] at ru.tehkode.permissions.PermissionManager.createBackend(PermissionManager.java:624)[PermissionsEx-1.23.3.jar:?] at ru.tehkode.permissions.PermissionManager.setBackend(PermissionManager.java:606)[PermissionsEx-1.23.3.jar:?] at ru.tehkode.permissions.PermissionManager.initBackend(PermissionManager.java:693)[PermissionsEx-1.23.3.jar:?] at ru.tehkode.permissions.PermissionManager.<init>(PermissionManager.java:67)[PermissionsEx-1.23.3.jar:?] at ru.tehkode.permissions.bukkit.PermissionsEx.onEnable(PermissionsEx.java:175)[PermissionsEx-1.23.3.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:408)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:372)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:327)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:267)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:561)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at java.lang.Thread.run(Unknown Source)[?:1.8.0_101] Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: 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. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[?:1.8.0_101] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)[?:1.8.0_101] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)[?:1.8.0_101] at java.lang.reflect.Constructor.newInstance(Unknown Source)[?:1.8.0_101] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[?:1.8.0_101] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)[?:1.8.0_101] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)[?:1.8.0_101] at java.lang.reflect.Constructor.newInstance(Unknown Source)[?:1.8.0_101] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at ru.tehkode.libs.org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)[PermissionsEx-1.23.3.jar:?] at ru.tehkode.libs.org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)[PermissionsEx-1.23.3.jar:?] at ru.tehkode.libs.org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)[PermissionsEx-1.23.3.jar:?] at ru.tehkode.libs.org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)[PermissionsEx-1.23.3.jar:?] at ru.tehkode.libs.org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)[PermissionsEx-1.23.3.jar:?] at ru.tehkode.libs.org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)[PermissionsEx-1.23.3.jar:?] at ru.tehkode.permissions.backends.sql.SQLBackend.getSQL(SQLBackend.java:245)[PermissionsEx-1.23.3.jar:?] at ru.tehkode.permissions.backends.sql.SQLBackend.<init>(SQLBackend.java:112)[PermissionsEx-1.23.3.jar:?] ... 22 more Caused by: java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method)[?:1.8.0_101] at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)[?:1.8.0_101] at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)[?:1.8.0_101] at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)[?:1.8.0_101] at java.net.AbstractPlainSocketImpl.connect(Unknown Source)[?:1.8.0_101] at java.net.PlainSocketImpl.connect(Unknown Source)[?:1.8.0_101] at java.net.SocksSocketImpl.connect(Unknown Source)[?:1.8.0_101] at java.net.Socket.connect(Unknown Source)[?:1.8.0_101] at java.net.Socket.connect(Unknown Source)[?:1.8.0_101] at java.net.Socket.<init>(Unknown Source)[?:1.8.0_101] at java.net.Socket.<init>(Unknown Source)[?:1.8.0_101] at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:254)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)[PaperSpigot-1.8.8-R0.1-SNAPSHOT.jar:git-PaperSpigot-e489049-07c3001] ... 42 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Once, 7 months ago
    18 times, 8 months ago
    765 more bugmates