I'm using Hibernate 3 with Eclipse 3.4.1 and JBoss Tools 3.0.0
I'm connecting to a local MySQL database using the following URL:
jdbc:mysql://localhost:3306/TEST
The above works, and I can use HQL editor and execute queries etc.
However when I change the URL to point to a remote database server, I get a JDBC exception when I try to expand the Database node in Hibernate Tools Configuration window. The exception is :
Quote:
Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: Network is unreachable: connect
STACKTRACE:
java.net.SocketException: Network is unreachable: connect
When I revert to using localhost (after shutting down my locally running MySQL) and use SSH tunneling, it once again works.
Is there some configuration that I need to put either in Hibernate Tools or Eclipse in order for it to be able to reach the remote database server?
In Eclipse, I checked Windows->Preferences->General->Network Connections and it's set to "Direct connection to the Internet" which is correct for my configuration.
Thanks![/quote]