[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Slow MySQL Connection through ODBC 5.1 Driver and ASP

Asked by -JerodR in MySQL Server, Active Server Pages (ASP)

Tags: ASP, ODBC, MySQL

I use the MySQL ODBC 5.1 Driver with an ASP page to connect to our MySQL 5.075.

The problem I have is that it takes a long time (about 10 to 15 seconds) to connect to the database the first time.

Here is my connection string:
Driver={MySQL ODBC 5.1 Driver};Server=MyServer;Database=MyDatabase; PORT=3306; user=MyUser;password=MyPassword;option=3"

If I reload the page, or continue to execute,  it is really fast, but if I wait a few minutes the initial connection is slow again.
[+][-]11/06/09 05:27 PM, ID: 25764540Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/10/09 08:25 AM, ID: 25786930Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625