| View previous topic :: View next topic |
| Author |
Message |
angelot Newbie

Joined: 08 Nov 2005 Posts: 4
|
Posted: Mon Jun 19, 2006 1:20 am Post subject: Can't connect to external mysql-db |
|
|
I've always been able to connect to my external mysql-db, but when I try todat I only get this message:
| Code: | SQL-status: 08S01
Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused
STACKTRACE:
java.net.SocketException: java.net.ConnectException: Connection refused
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
at com.mysql.jdbc.Connection.<init>(Connection.java:1485)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
** END NESTED EXCEPTION ** |
I have no problem accessing the db from web/phpmyadmin... _________________ @ngelot |
|
| Back to top |
|
 |
zorgh Newbie

Joined: 25 Jun 2006 Posts: 2
|
Posted: Sun Jun 25, 2006 1:05 pm Post subject: |
|
|
Hi
I have the same problem.
Did you find a solution ?
Thx |
|
| Back to top |
|
 |
zorgh Newbie

Joined: 25 Jun 2006 Posts: 2
|
Posted: Sun Jun 25, 2006 11:58 pm Post subject: |
|
|
i found the solution in the mysql configuration file :
#bind-address = 127.0.0.1 (comment the line) |
|
| Back to top |
|
 |
|