Socket error on connect ???

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Geraldm
Posts: 3
Joined: Fri 08 Dec 2006 13:42

Socket error on connect ???

Post by Geraldm » Tue 24 Apr 2007 06:44

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.
:?: :?:

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 24 Apr 2007 08:02

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.

Post Reply