TMyConnection.Open is too slow

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
devweb
Posts: 16
Joined: Sat 02 Feb 2008 08:10

TMyConnection.Open is too slow

Post by devweb » Wed 21 May 2008 16:08

Hello,

When I try to Open TMyConnection on design mode, it took too much time, I use the direct mode with user has all the privilege for the database I want to use, when I change the host to "localhost" instead of computer name and using Root user, it's open very fast, why if I use the computer name instead of localhost, opening connection is slow?

btw, I don't run any firewall

Regards,

tltmusashi
Posts: 5
Joined: Tue 06 May 2008 10:38

Post by tltmusashi » Wed 21 May 2008 19:24

if u use remote DB, u must set params on MySQL my.ini
write this on the end of file

Code: Select all

#Don't cache host names.
skip-host-cache
#Don't resolve hostnames. All hostnames are IP's or 'localhost'.
skip-name-resolve

devweb
Posts: 16
Joined: Sat 02 Feb 2008 08:10

Post by devweb » Thu 22 May 2008 14:02

thanks tltmusashi,

however, i'm still facing the same problem, I just use the mysql and mydac on the same Pc, and don't connect to remote db, it's strange that it's too slow to open connection even i dont' have any tables on the db

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

Post by Dimon » Mon 26 May 2008 14:48

It is possible that it is related to problems with network.
Try connecting to MySQL server with Telnet using computer name. If connection opens too slow, try changing network settings.

Post Reply