Hi,
I'm getting the following exception and I'm not really sure why I'm
getting it.
***Exception: Unable to connect to any hosts due to exception:
java.net.ConnectException: Connection timed out: connect**** The
default mysql port 3306 has been opened by our network administator
and clotho is the firewall behind which our server resides. the
following is my java-mysql code.
*****
public static Connection connect(){
try{
String url =
"jdbc:mysql://clotho.socsci.umn.edu:3306/test";
// String url ="jdbc:mysql:///stat_ddippss";
con = DriverManager.getConnection(url, "user", "test");
}
catch(Exception e){
System.err.println("Exception: " + e.getMessage());
}
return con;
}
public static void loadDriver(){
try{
Class.forName("com.mysql.jdbc.Driver");
}
catch (Exception e){
}
}
**************
Thanks!!
Gena