Mysql and JDBC connection time out.

2005-11-02 Thread Xiaobo Chen
Hi, all. First, I should give some information on the setting: I have mysql database, say, mydatabase, existing in one machine A which is Solaris; I am trying to connect this database from another XP machine. The code snippet in the XP machine looks like this: String driver =

Re: Mysql and JDBC connection time out.

2005-11-02 Thread Hassan Schroeder
Xiaobo Chen wrote: then I tried 'telnet': telnet aaa.bbb.ca or telnet aaa.bbb.ca:3306 both case, it said: Could not connected to the host , on port 23: connect failed. Your second example is invalid -- it should be `aaa.bbb.ca 3306` -- so it's not surprising that didn't work :-) But

Re: Mysql and JDBC connection time out.

2005-11-02 Thread Xiaobo Chen
I already turned off the firewall on the XP machine, but it doesn't work either. I am doubting that in the database on the other Solaris machine, it doesn't allow the connection from the XP machine. I am doubting this way because other application on other Solaris machine can conenction to the

Re: Mysql and JDBC connection time out.

2005-11-02 Thread Hassan Schroeder
Xiaobo Chen wrote: I already turned off the firewall on the XP machine, but it doesn't work either. I am doubting that in the database on the other Solaris machine, it doesn't allow the connection from the XP machine. I am doubting this way because other application on other Solaris machine

Re: Mysql and JDBC connection time out.

2005-11-02 Thread Xiaobo Chen
I can not use 'telnet aaa.bbb.ca 3306' on XP machine, it will give error like this: Could not open connection to the host, on port 3306. Connection failed. But if I try on other Solaris machines ,it will say something like this: Trying (IP address) Connected to aaa.bbb.ca. Escape character is

Re: Mysql and JDBC connection time out.

2005-11-02 Thread Hassan Schroeder
Xiaobo Chen wrote: I can not use 'telnet aaa.bbb.ca 3306' on XP machine, it will give error like this: Could not open connection to the host, on port 3306. Connection failed. But if I try on other Solaris machines ,it will say something like this: Trying (IP address) Connected to

Re: Mysql and JDBC connection time out.

2005-11-02 Thread Paul DuBois
At 14:57 -0400 11/2/05, Xiaobo Chen wrote: I already turned off the firewall on the XP machine, but it doesn't work either. I am doubting that in the database on the other Solaris machine, it doesn't allow the connection from the XP machine. I am doubting this way because other application on