On Windows 2008 R2 MYSQL ODBC Connection

Hi Experts,
I have MySQL installed on Windows XP 32Bit machine.
Installed the MYSQL ODBC connector 5.1.6 64Bit on Windows 2008R2 X64
Created the DSN for the same and try to use it
        Dim myConnectionString As String
        myConnectionString = "Dsn=snr;uid=fkt_test;pwd=fkt_test;MultipleActiveResultSets=true;"
        Try
            Dim conn As New System.Data.Odbc.OdbcConnection(myConnectionString)
            conn.Open()
        Catch ex As Exception
            Response.Write(ex.Message)
            Exit Sub
        End Try
I am getting error message "ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application"

I have tried with MYSQL ODBC 32 bit version too.

Please guide me how to do the setup so can use in my web application. Same dsn work in windows 2003R2 32 Bit, Vista 32Bit etc.

Thanks
Mehul
MKPanchalAsked:
Who is Participating?
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.

TeethingCommented:
See this link for setting up a 32bit ODBC connection:

http://support.microsoft.com/kb/942976/en-us
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
MKPanchalAuthor Commented:
Thanks Teething,
It works perfectly ok, in 64Bit DSN does not show it. I have added DSN and it is working,
Thanks,
Mehul
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
Web Applications

From novice to tech pro — start learning today.