找不到类型或名称空间名称"MySqlConnection"(您是否缺少using指令或程序集引用?) [英] The type or namespace name 'MySqlConnection' could not be found (are you missing a using directive or an assembly reference?)

查看:156
本文介绍了找不到类型或名称空间名称"MySqlConnection"(您是否缺少using指令或程序集引用?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在做一个项目,我几乎完成了这个工作,这个错误让我明白了,我首先想到我的数据库没有连接,但是它已经连接了,我真的不知道解决方案是什么(如果我在给出的问题上错了,请纠正我.)并使用Visual Studio 2013即时通讯

so I'm making a project and I'm almost done with it and this error got me, I thought in the 1st place my database is not connected but it's connected and I don't really know what is the solution for it(correct me if I'm wrong in the problem that I gave.)and im using a visual studio 2013

我已经通过检查和取消选中它来完成数据库的重新连接,但仍然无法正常工作这是我得到的错误

I have done reconnecting my database by checking and unchecking it but still doesn't workthis is the error that I got

推荐答案

您需要安装软件包MySql.Data

You need to install the package MySql.Data

PM> Install-Package MySql.Data

有关更多信息,请检查以下问题:

for more check this question: MySql doesn't work in Visual Studio 2012 : The type or namespace name 'MySql' could not be found

这篇关于找不到类型或名称空间名称"MySqlConnection"(您是否缺少using指令或程序集引用?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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