mysql jdbc windows vista
Posted by: eman85 eman85
Date: August 01, 2009 02:25PM

My MySQL 5.0 installation had always worked fine with Java. I used it from my programs accessing databases with JDBC.

Suddenly it gave up working: when I try connecting it produces exceptions.
I try even with the latest MySQL 5.1 and with the most recent JDBC driver, but all has been useless.
I really don't know what to do, all my projects are completely unusable.

Did someone experienced the same problem?

I add the exception stack:

com.mysql.jdbc.CommunicationsException: 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:156)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2666)
at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at ProvaMySql.main(ProvaMySql.java:15)


** END NESTED EXCEPTION **



Last packet sent to the server was 10 ms ago.
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2741)
at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at ProvaMySql.main(ProvaMySql.java:15)


I hope someone can help me.

Options: ReplyQuote


Subject
Written By
Posted
mysql jdbc windows vista
August 01, 2009 02:25PM
August 11, 2009 10:42PM
October 08, 2009 12:03PM
October 10, 2009 08:40AM


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.