Re: registerDriver()
Posted by: Mark Matthews
Date: May 09, 2005 09:04PM

Sean Breslin wrote:
> 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://myurl.com:6998/dbname?user=user&
> password=pass&useUnicode=true&characterEnc
> oding=UTF-8";
> conn = DriverManager.getConnection(connString);
>
> And the error created:
>
> Communications link failure due to underlying
> exception:

Sean,

Sounds like the port is blocked by a firewall. Most ISPs/providers that have MySQL servers _don't_ have them open to the internet, you can only connect locally on the machine the database is hosted on (or within the DMZ).

-Mark

Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools
Oracle
http://www.mysql.com/products/enterprise/monitor.html

Options: ReplyQuote


Subject
Written By
Posted
May 09, 2005 07:17PM
May 09, 2005 07:43PM
May 09, 2005 07:56PM
May 09, 2005 08:07PM
May 09, 2005 08:51PM
Re: registerDriver()
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.