7 messages in com.mysql.lists.plusplusRe: Error: Can't connect to MySQL ser...
FromSent OnAttachments
Oliver Gray21 May 2006 06:31 
Warren Young22 May 2006 12:08 
Oliver Gray22 May 2006 19:38 
Oliver Gray07 Jun 2006 19:52 
Warren Young08 Jun 2006 00:14 
Oliver Gray08 Jun 2006 02:29 
Carlos Flores08 Jun 2006 23:06 
Subject:Re: Error: Can't connect to MySQL server (10060)
From:Warren Young (mysq@etr-usa.com)
Date:05/22/2006 12:08:19 PM
List:com.mysql.lists.plusplus

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.