out of my network. I have an IP address, a dbname, a username and a
password. I know I cannto connect with these parameters from this remote
machine because I am doing it with php -- but I want to be able to get
MySQLConnectorJ to be able to do it as well. Thank you. -Ike
> out of my network. I have an IP address, a dbname, a username and a
> password. I know I cannto connect with these parameters from this remote
> machine because I am doing it with php -- but I want to be able to get
> MySQLConnectorJ to be able to do it as well. Thank you. -Ike
Something like this should work:
java.sql.Connection con =
DriverManager.getConnection("jdbc:mysql://"
+ ip + "/" + dbname,
username,
password );
If you still have trouble, wrap the whole thing in a try {}
block and report the exact error-message to this group or
a MySQL forum.

Signature
PGP key posted on website ... http://www.lmert.com/people/davidl/