Re: Can not connect to Mysql using jdbc on xp
Posted by: Naomi Blythe
Date: June 01, 2005 10:46PM

It is now using Connector/J 3.1.8. Below is the error message that I get. The line that is spitting out the error is the line "cnn = DriverManager.getConnection("jdbc:mysql://");


com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

MESSAGE: Connection refused: connect

STACKTRACE: Connection refused: connect
at com.mysql.jdbc.StandardSocketFactory.connect(
at com.mysql.jdbc.MysqlIO.<init>(
at com.mysql.jdbc.Connection.createNewIO(
at com.mysql.jdbc.Connection.<init>(
at com.mysql.jdbc.NonRegisteringDriver.connect(
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at PrayerDiary.<init>(
at PrayerDiary.main(



Options: ReplyQuote

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.