简体   繁体   中英

mysql odbc driver works fine on visual studio 2008 but not on visual studio 2010

Hey guys i got a problem which is doing my head in, and was hoping someone would be able to point me in t he right direction.

I have ac# application which i wrote using visual studio 2008 at the time i installed a mysql odbc 3.51 driver this app worked fine connection to a mysql db on my localhost and let me do what i needed to do.

i got a copy of visual studio 2010 from the microsoft dreamspark website installed it, opened the solution to the app i had written in 2008 made some changes ran it and it works totally fine.

Then i created a new application this time starting it in vs2010 created my odbc connection the same way as i did in the 2008 app but now i get an error saying:

"ERROR [IN002][Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"

i then opened vs2008 and tried again to make a simple app to test my connection and it worked fine.

i can only quess that it is something to do with visual studio 2010.

any ideas would be most welcome :)

Vade

尝试重新安装MySQL驱动程序,可能会希望它进行一些Visual Studio调整,这些调整将出现在您的2008项目中,但如果随后安装了,则不会出现在新的2010项目中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM