mysql odbc驱动程序在Visual Studio 2008上工作正常,但在Visual Studio 2010上工作不正常 [英] mysql odbc driver works fine on visual studio 2008 but not on visual studio 2010

查看:184
本文介绍了mysql odbc驱动程序在Visual Studio 2008上工作正常,但在Visual Studio 2010上工作不正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,我遇到了一个问题,那就是我正在头脑中,希望有人能够指出我正确的方向.

我有一个ac#应用程序,我在安装mysql odbc 3.51驱动程序时使用Visual Studio 2008编写,该应用程序可以很好地连接到本地主机上的mysql数据库,并让我做我需要做的事情.

我从Microsoft dreamspark网站上安装了Visual Studio 2010,并打开了我在2008年编写的应用程序的解决方案,并对其进行了一些更改,使其运行正常.

然后我这次创建了一个新应用程序,它在vs2010中启动,它以与2008年应用程序相同的方式创建了odbc连接,但是现在我收到一条错误消息:

错误[IN002] [Microsoft] [ODBC驱动程序管理器]数据源名称未找到且未指定默认驱动程序"

然后我打开vs2008,然后再次尝试制作一个简单的应用程序来测试我的连接,效果很好.

我只能怀疑这与Visual Studio 2010有关.

任何想法都将受到欢迎:)

Vade

解决方案

尝试重新安装MySQL驱动程序,可能希望它进行一些Visual Studio调整,这些调整将出现在您的2008项目中,而不是在新的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 a c# 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

解决方案

Try re-installing the MySQL driver, there may be some Visual Studio tweaks it wants to make that would be present in your 2008 project but not in a fresh 2010 project if that was installed subsequently.

这篇关于mysql odbc驱动程序在Visual Studio 2008上工作正常,但在Visual Studio 2010上工作不正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆