Page 1 of 1

Socket error on connect ???

Posted: Tue 24 Apr 2007 06:44
by Geraldm
Hi,

I'm having a problem connecting to a mySQL database. I get the following error:

Can't connect to MySQL server on'' (10061)
Socket error on connect. WSAGetLastError return 10060($274C).

I have replaced the host name with for security reasons. Does anyone know why I would be getting this error??

Cheers ....
Gerald.
:?: :?:

Posted: Tue 24 Apr 2007 08:02
by Antaeus
MyDAC tries to connect to MySQL using Winsock.Connect function (see MSDN for more information) and this function fails. Below are listed possible reasons of this problem:
- host name or port number is typed incorrectly;
- MySQL server is not running;
- network connection is broken;
- the connection is blocked by a firewallon on the client or on the server.