.Net 连接MySQL的问题
C# 连接不上 MySQL数据库
驱动已经安装了,可是还是有错误
System.ArgumentException: 找不到请求的 .Net Framework Data Provider。可能没有安装。
在 System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)
在 System.Data.Entity.Internal.LazyInternalConnection.TryInitializeFromAppConfig(String name)
在 System.Data.Entity.Internal.LazyInternalConnection.Initialize()
在 System.Data.Entity.Internal.LazyInternalConnection.get_Connection()
在 System.Data.Entity.Internal.LazyInternalContext.get_Connection()
在 System.Data.Entity.Database.get_Connection()
在 CQM.Common.CommonFunctions.DoConnectVMC() 位置 H:\Charley\MyProject\CQM\CQM\CQM\Common\CommonFunctions.cs:行号 124
请大牛们帮忙看看
驱动我安装的是MySQL Connector Net 6.2.6
记得以前安装的是MySQL Connector Net 6.4.4 是可以的。
[解决办法]
用vs的连接向导连不上吗?重新安装驱动吧
[解决办法]
MySQL.Data.dll是要复制到程序根目录的,客户安装了,如果没有放到全局缓存中你的程序也是找不到MySQL.Data.dll
[解决办法]