So when i try to connect to my database for highscores i get this in my console.
Code:
[12-6-14 14:31]: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 1.402.576.285.576 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
[12-6-14 14:31]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[12-6-14 14:31]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
[12-6-14 14:31]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
[12-6-14 14:31]: at java.lang.reflect.Constructor.newInstance(Unknown Source)
[12-6-14 14:31]: at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
[12-6-14 14:31]: at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
[12-6-14 14:31]: at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2214)
[12-6-14 14:31]: at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:773)
[12-6-14 14:31]: at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
[12-6-14 14:31]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[12-6-14 14:31]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
[12-6-14 14:31]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
[12-6-14 14:31]: at java.lang.reflect.Constructor.newInstance(Unknown Source)
[12-6-14 14:31]: at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
[12-6-14 14:31]: at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:352)
[12-6-14 14:31]: at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)
[12-6-14 14:31]: at java.sql.DriverManager.getConnection(Unknown Source)
[12-6-14 14:31]: at java.sql.DriverManager.getConnection(Unknown Source)
[12-6-14 14:31]: at server.model.players.Highscores.process(Highscores.java:18)
[12-6-14 14:31]: at server.Server.main(Server.java:204)
[12-6-14 14:31]: Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
how to fix this? yes i've added a Database Access Host ( added the ip of my server )