mysql 命名空间,无法找到MySQL命名空间(...)

I used MySQL with VS some years ago, so apologies for that question. Is the following, I have:

win7 x64

VS 2010

and installed connector 6.3.6 and the community server. After using the GUI looks like mysql server is running ok.

I was surprised not finding mysql file to copy (the .dll), so when I took a look at documentation I found that it''s integrated in VS 2010 (I think im not wrong) - altough I tried place some dlls I found at bin directory but no sucess.

Just for test I created a new website with .NET 4.0 (also tried 3.5), on server explorer I added the connection (all ok) but when I compile I get:

Error1The type or namespace name ''MySql'' could not be found (are you missing a using directive or an assembly reference?)

at

using MySql.Data.MySqlClient;

using MySql.Data.Types;

How can I solve this problem?

I already reinstaled the connector and rebooted the computer, but the reference MySQL still dont work.

解决方案Download from here

http://dev.mysql.com/downloads/connector/net/1.0.html[^]

New assembly - delete old reference and add reference to new assembly

Regards

Espen Harlinn

i am trying to connect my visual studio with mysql but its asking mysql.dll i dont know how to create or connect

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值