Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi,

i have a win7 pc 64bit, and i have an application that makes connection to mySQL database using ODBC connector. I've installed mysql-connector-odbc-5.1.11-winx64 driver. whenever the application trying to connect an error appears:

-2147467259 from microsoft ole db provider for odbc drivers:[microsoft][odbc driver manager] data source name not found and no default driver specified

after i installed mysql-connector-odbc-5.1.8-winx64 driver, the problem solved.

can any one tell me a reasonable explanation for this issue?

Thank You.

the code:
VB
Public connSQL As New ADODB.Connection
connSQL.ConnectionString = "driver=MySQL ODBC 5.1 Driver;database=" + sDBName + ";server=" + sServerNM + ";uid=" + sUID + ";pwd=" + sUPwd
connSQL.Open()
Posted
Comments
ZurdoDev 25-Jun-12 9:05am    
Contact mySQL to find out why one version did not work.

1 solution

Your connection string is VERY wrong. Take a look at this list[^] on ConnectionStrings.com to see which one best fits your situation.

BTW: The curly brackets are there for a reason. Do NOT leave them out!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900