Need help debugging a very slow Mysql ODBC connection

I have Delphi application that access MySQL 5.1 installed on Linux. We are using MySQL ODBC 5.1 Driver. This application works fine on our XP clients but not on a new windows 7 machine. The connection is very slow, a simple task takes 10 seconds, and it should take just a few milliseconds. I have installed Mysql Workbench and it is working perfect from the win 7 machine.

This is the connection string I use:
    con.ConnectionString :=
    'DRIVER={MySQL ODBC 5.1 Driver};'
    + 'SERVER=' + server.text + ';'
    + 'PORT=3306;'
    + 'DATABASE=' + database.text + ';'
    + 'User=' + username.text + ';'
    + 'PASSWORD=' + password.text + ';'
    + 'OPTION=3;';

con = TADOConnection

Please note that I have no problem with establishing a connection, the problem is the long response time after the connection is established.

I have removed Norton, no change.
evassvagAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mahdi78Commented:
Run the application as administrator
0
evassvagAuthor Commented:
I was already running it as administrator
0
Mahdi78Commented:
Try to set firewall settings, reset exceptions property (port, IP, program)
0
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

systanCommented:
try to uninstall Mysql Workbench, restart, reinstall mysql odbc, then try the connection.
0
evassvagAuthor Commented:
I uninstalled workbench, no change in speed after booting. I reinstalled mysql odbc, no change. I uninstalled mysql odbc and got an error message as expected. I then installed mysql-connector-odbc-5.1.8-winx64 (complete). I booted and  then connected but still slow.
0
systanCommented:
I guess it's a network configuration problem of win7, follow this steps;

At the command prompt, type the following command, and then press ENTER:
netsh interface tcp set global autotuninglevel=disabled

If it does not work;
Set this to your win7 Lan Card device driver;

Large Send Offload v2 (IPv4) - Disable
Large Send Offload v2 (IPv6) - Disable

Procedure;
- Start Menu -> Control Panel
- Network and Internet
- Network and Sharing Center
- Choose Local Area Connection
near the top on the right;
- Press "Properties" button
- Press "Configure" button
- Pick "Advanced" tab
0
evassvagAuthor Commented:
In "ODBC Data Source Administrator" Tracing tab. Tracing was activated, I deactivated it and the connection is as fast as it should be.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
systanCommented:
noted
0
evassvagAuthor Commented:
* Please state your reason for accepting your own comment as the solution.

It solved the problem
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.