From: Warren Young Date: December 26 2007 9:30pm Subject: Re: MySQL++ Cannot Connect to Server List-Archive: http://lists.mysql.com/plusplus/7303 Message-Id: <4772C813.6070605@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Brian Dawn wrote: > > But I caught the exception and got it's what() method. I got "Can't > connect to MySQL server on '123.myServer.net' <10060>. 10060 is a Winsock error code meaning "connection refused". It means the server is either a) not running, b) running but not listening on the port number you're using, or c) running but bound to a different IP address than the one you're using. After reading your subsequent message, it's 'c' in your particular case: the server is listening only on the localhost IP address, so only programs running on the same machine can connect to it. The connection is being rejected down in the network stack; the MySQL server never even sees the attempt.