哪里可以找到mySql Connector 6.3.0 for 64 Bit?

时间:2012-02-04 18:09:02

标签: .net mysql connector

我们有一个旧的应用程序,我们需要移植到一台新机器,但该东西运行使用6.3.0.0 mySql连接器专门。 mySql站点最近只有6.3.8。尝试得到一个错误。最新的连接器也是如此。 (为Windows Server 2008 R2 64位系统安装) enter image description here

无法在任何地方找到它。错误我只是供参考。

2 个答案:

答案 0 :(得分:3)

由于编译后的dll和加载的dll之间的程序集不匹配,导致出现此错误。由于没有适用于MySQL的64位版本的Ado.Net连接器,因此它与您的目标计算机无关。 All connector binaries are compiled targeting "Any CPU" which should work for both 32 bit and 64 bit machines.

我检查了Sam在他的链接中提供的dll,并再次定位“任何CPU”,而不是“x64”。检查你可以做

System.Reflection.AssemblyName.GetAssemblyName("MySql.Data.dll").ProcessorArchitecture.ToString();

,它给出了MSIL,意思是“任何CPU”。

或者你甚至可以这样做:

Start/Programs/Microsoft Visual Studio xx/Visual Studio Tools/Command Prompt

cd "directory to dll"

corflags MySql.Data.dll

这将给出PE = PE32 and 32BIT = 0,这意味着它在“任何CPU”平台中编译。

答案 1 :(得分:2)

在mySql档案中找到它:

http://dev.mysql.com/downloads/mirror.php?id=382641

需要注册/登录

希望这会在某个时候帮助某人。