i want to connect mysql with java farms but got exceptions
Posted by: Umer Farooq
Date: March 10, 2005 12:26PM

i want to connect the mysql with java but got these problems i have loaded the java mysql drive but
still got problem.... plz help mee....



SQLException:Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused: connect

STACKTRACE:

java.net.SocketException: java.net.ConnectException: Connection refused: connect

at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:151)

at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)

at com.mysql.jdbc.Connection.createNewIO(Connection.java:1765)

at com.mysql.jdbc.Connection.<init>(Connection.java:430)

at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)

at java.sql.DriverManager.getConnection(DriverManager.java:525)

at java.sql.DriverManager.getConnection(DriverManager.java:171)

at SimpleJDBC.main(SimpleJDBC.java:29)



** END NESTED EXCEPTION **

Options: ReplyQuote


Subject
Written By
Posted
i want to connect mysql with java farms but got exceptions
March 10, 2005 12:26PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.