List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:May 22 2006 7:08pm
Subject:Re: Error: Can't connect to MySQL server (10060)
View as plain text  
Oliver Gray wrote:
> where "dbname", "hostname", "username", and "password" are the actual
> database name, hostname, username and password.  I get the exception listed
> in the subject line.

10060 is a Winsock error code, meaning that the connection timed out. 
That suggests that the host name is completely incorrect, because you're 
not even contacting a real host that can reject the connection.

If you're familiar with the TCP protocol, this means the SYN packet is 
going out, and no SYN/ACK (or RST) is coming back.

This assumes that there are no firewalls in the way.  If that's the 
case, then the host name could be correct, but the firewall is dropping 
the SYN packet silently.  Firewalls often do this for "stealthing" reasons.
Thread
Error: Can't connect to MySQL server (10060)Oliver Gray21 May
  • Re: Error: Can't connect to MySQL server (10060)Warren Young22 May
    • Re: Error: Can't connect to MySQL server (10060)Oliver Gray23 May
      • Re: Error: Can't connect to MySQL server (10060)Oliver Gray8 Jun
        • Re: Error: Can't connect to MySQL server (10060)Warren Young8 Jun
          • Re: Error: Can't connect to MySQL server (10060)Oliver Gray8 Jun
        • Re: Error: Can't connect to MySQL server (10060)Carlos Flores9 Jun