Where can i find mySql Connector 6.3.0 for 64 Bit?

Sam picture Sam · Feb 4, 2012 · Viewed 17.7k times · Source

we have this old application that we need to port to a new machine but that thing runs using the 6.3.0.0 mySql connector specifically. The mySql site only has 6.3.8 as the closest. tried get an error. so does the latest connector. (installing this for Windows Server 2008 R2 64bit system) enter image description here

Can't find it anywhere. Error i get just for reference.

Answer

nawfal picture nawfal · Feb 25, 2013

You're getting this error as a result of assembly mismatch between the compiled dll and loaded dll. It's not related to your target machine being 64 bit since there is no 64 bit version of Ado.Net connector for MySQL. All connector binaries are compiled targeting "Any CPU" which should work for both 32 bit and 64 bit machines.

I inspected the dll Sam has provided in his link, and that again targets "Any CPU", not "x64". To inspect you could do

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

which gives MSIL which means "Any CPU".

Or you could do even this:

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

cd "directory to dll"

corflags MySql.Data.dll

which would give PE = PE32 and 32BIT = 0 which means its compiled in "Any CPU" platform.