找不到类型或名称空间名称"MySqlConnection"(您是否缺少using指令或程序集引用?) [英] The type or namespace name 'MySqlConnection' could not be found (are you missing a using directive or an assembly reference?)
问题描述
所以我正在做一个项目,我几乎完成了这个工作,这个错误让我明白了,我首先想到我的数据库没有连接,但是它已经连接了,我真的不知道解决方案是什么(如果我在给出的问题上错了,请纠正我.)并使用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屋!