Error when connect to mysql databse on internet

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
beh.tehrani
Posts: 1
Joined: Sun 17 Jan 2010 17:07

Error when connect to mysql databse on internet

Post by beh.tehrani » Sun 17 Jan 2010 17:14

Hello

my mysql database with uidac in local is good work, but when i set all information for connect to mysql databse on my site, show me this error:

Thread Exit: Thread ID: 3648. Process Project1.exe (3596)
First chance exception at $75D19617. Exception class SocketException with message ''. Process Project1.exe (3596)
First chance exception at $75D19617. Exception class EMySqlException with message
'Can't connect to MySQL server on 'test.com' (10061)
Socket error on connect. WSAGetLastError return 10060($274C)'.

all information, username, password and .... is true, but i don't know why show me this error!!!

help me please

thanks

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 19 Jan 2010 08:16

Given error arises when making an attempt to connect to an inactive service. You can read about the WSAECONNREFUSED(10061) error in more details in MSDN. Usually this error is related to network problems or firewall settings.
Try to connect with Telnet. If connection is not established, you should change network settings.

Also you can use HTTP connection. You can find detailed information about it in the "Network Tunneling" topic of MyDAC Help.

Post Reply