Impossible de se connecter a mysql
Bonjour,
Je n'arrive pas a me connecter a ma base de donnee MySql.
j'ai un GRANT ALL PRIVILEGE ON mabase.* TO moi@% WITH GRAND OPTION
J'utilise le connector 5.0.
Ma chaine de connexion est jdbc:mysql://narcizas.serveriai.lt/kursiniai_lelija?user=....&password=.......&Unicode=true&characterEncoding=UTF-8";
Voici mon erreur
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.ConnectException
MESSAGE: Connection refused: connect
STACKTRACE:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:173)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:267)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2739)
at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at outil.MonModeleTable.recalculate(MonModeleTable.java:68)
at outil.MonModeleTable.<init>(MonModeleTable.java:49)
at vue.MainWindows.<init>(MainWindows.java:17)
at Main.main(Main.java:12)
** END NESTED EXCEPTION **
Last packet sent to the server was 31 ms ago.
java.lang.ArrayIndexOutOfBoundsException: 3 >= 0 |
Merci