Re: registerDriver()
Posted by: Sean Breslin
Date: May 09, 2005 08:51PM

Thank you, that link has helped me understand how this works. The problem, however, was that my router was blocking the port I tried to connect on... Incredibly stupid mistake.

Now that I'm not having that problem, I'm getting the other message that I mentioned when I tried another ISP...

Here are the lines of code creating the error:

String connString = "jdbc:mysql://";
conn = DriverManager.getConnection(connString);

And the error created:

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 Project$Connect.<init>(
at Project.<init>(
at Project.main(


Options: ReplyQuote

Written By
May 09, 2005 07:17PM
May 09, 2005 07:43PM
May 09, 2005 07:56PM
May 09, 2005 08:07PM
Re: registerDriver()
May 09, 2005 08:51PM
May 09, 2005 09:04PM
May 10, 2005 11:17AM
May 10, 2005 12:34PM
May 10, 2005 12:59PM
May 10, 2005 01:19PM
May 10, 2005 01:30PM
May 10, 2005 01:44PM
May 10, 2005 01:52PM
May 10, 2005 02:05PM
May 10, 2005 02:22PM

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.