If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Slow connections using ADODB and when server is not "localhost"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-07-05, 14:32
dramirez dramirez is offline
Registered User
 
Join Date: Mar 2005
Posts: 4
Question Slow connections using ADODB and when server is not "localhost"

Hi. I'm developing and application in LabView (National Instruments), which is basically like any programming language. I need this application to communicate with mySql server, and I chose to do it through ADODB (MDAC 2.8 and myOLEDB 3.0). The problem is that any time I invoke a "connection" or "command" method, the response time is more than 5 seconds . Surprisingly, I found that if I run my application on the same server machine, using the location "localhost", the problem does not arise , but if I use the machine network name, the problem is back .

I read about some HOSTS or LMHOSTS problem with SQL server and MDAC 2.6, but this is not the case.

Any ideas will be greatly appreciated. Thank You.

Daniel Ramirez
Universidad de Concepcion
Chile
Reply With Quote
  #2 (permalink)  
Old 03-07-05, 17:08
mamin mamin is offline
Registered User
 
Join Date: Oct 2003
Posts: 24
Try to put Machinename and IP address in your host file and see what happens..Seems like name is not getting resolved as fast as it should be
Reply With Quote
  #3 (permalink)  
Old 03-07-05, 17:30
dramirez dramirez is offline
Registered User
 
Join Date: Mar 2005
Posts: 4
Thumbs up

Quote:
Originally Posted by mamin
Try to put Machinename and IP address in your host file and see what happens..Seems like name is not getting resolved as fast as it should be
Thank you. I've tried that, but it didn't solve the problem. Anyway, as you have foreseen, the problem was in that direction. From a mysql.com forum I got the idea to disable name resolving on the mysql server. Voila .

See you.

Daniel R.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On