I can connect to MySQL through JDBC with the following URL without any problem: jdbc:mysql://localhost:3306/mydatabase

However, when I simulate the above URL as though I'm calling from a remote
machine using the following URL,
jdbc:mysql://192.168.0.10:3306/mydatabase

I got the following exception (the file name is Lookup.java) :
Exception in thread "main" java.sql.SQLException: Communication link
failure: java.io.IOException
       at com.mysql.jdbc.MysqlIO.init(Unknown Source)
       at com.mysql.jdbc.Connection.connectionInit(Unknown Source)
       at com.mysql.jdbc.jdbc2.Connection.connectionInit(Unknown Source)
       at com.mysql.jdbc.Driver.connect(Unknown Source)
       at java.sql.DriverManager.getConnection(DriverManager.java:512)
       at java.sql.DriverManager.getConnection(DriverManager.java:171)
       at Lookup.main(Lookup.java:16)

I would very much appreciate if anybody could tell me how to connect the
database from a remote machine (if possible with which library to import
from). Thank you very much in advance.



_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus



--------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



Reply via email to