Bug #70752 Installation of mysql-connector-odbc-5.2.6-winx64.msi failed on Windows 2008 R2
Submitted: 28 Oct 2013 16:11 Modified: 29 Oct 2013 12:18
Reporter: Jeremy Ruffer Email Updates:
Status: Duplicate Impact on me:
None 
Category:Connector / ODBC Severity:S3 (Non-critical)
Version: OS:Microsoft Windows (Windows Server 2008 R2)
Assigned to: CPU Architecture:Any
Tags: Install Windows 2008 64bit

[28 Oct 2013 16:11] Jeremy Ruffer
Description:
MySQL Connector/ODBC 5.2 -- Error 1918.Error installing ODBC driver MySQL ODBC 5.2 ANSI Driver, ODBC error 13: The setup routines for the MySQL ODBC 5.2 ANSI Driver ODBC driver could not be loaded due to system error code 193: .. Verify that the file MySQL ODBC 5.2 ANSI Driver exists and that you can access it.

How to repeat:
Run the installer on Windows Server 2008 R2
[28 Oct 2013 16:46] Miguel Solorzano
Please check for duplicte with http://bugs.mysql.com/bug.php?id=70661 . Thanks.
[28 Oct 2013 16:55] Jeremy Ruffer
It looks similar but the 32bit version installs without a problem.  I only get the error with the 64bit version.

I have attached the registry export mentioned in the other case.

Regards

Jeremy
[28 Oct 2013 17:33] Miguel Solorzano
Thank you for the feedback.
[29 Oct 2013 12:01] John Doe
Before running the x64 installer of "MySQL ODBC connector" on "Windows Server 2008 R2" you need to download an install "Microsoft Visual C++ 2010 Redistributable Package (x64)" from http://www.microsoft.com/en-us/download/details.aspx?id=14632

Cheers,
John
[29 Oct 2013 12:18] Jeremy Ruffer
That worked.  Thank you.

Jeremy
[7 Nov 2013 12:31] Utsav Verma
Hi,

I am trying to install ODBC driver on windows server 2012 and facing same issue. Installing Microsoft Visual C++ 2010 Redistributable Package (x64) didnt help either.

Any help will be highly appreciated. 

Thanks.
[9 Nov 2013 11:55] Hannes Hertes
Hi,

I am trying to install ODBC driver on windows 8.1 and have the same issue. Installing Microsoft Visual C++ 2010 Redistributable Package (x64) didnt help - what else I can do?

Any help will be highly appreciated. 

Thanks.
[9 Nov 2013 11:57] Hannes Hertes
Sorry, I forgott to tell, that I try to install the mysql-connector-odbc-5.2.6-winx64 on a AMD 54-bit machine (the 32-bit version installed successfully).
[9 Nov 2013 12:02] Hannes Hertes
I looked for a solution such a long time and now - after I wrote here - I found the solution:

In my case I had to 
1. remove manually the "C:\Windows\System32\msvcr100.dll" and
2. Reinstall the program mentioned above (vcredist_x64).

I hope this helps others, too.

P.S.: Sorry for "spaming" this thread.
[24 Jan 2014 22:02] Eunice Mora
Thanks! 
I had copied msvcr100.dll from the existing msvcr100_clr0400.dll based on other posts then tried the install MS VC++ redist install and didn't work.

Only did 1. and 2. above the mysql-connector-odbc-5.2.6-winx64 installed OK.
[30 Jan 2014 19:20] Glauco Munck
I’m having the same problem and tried all the suggestions mentioned above. I get the same error for Windows 8.1 64 bits.
I have tried “mysql-connector-odbc-5.2.6-winx64.msi” and “mysql-connector-odbc-5.2.6-win32.msi”. The version winx64 installs with no problem, but it doesn´t work with my application (Access 22 bits). The version win32 doesn’t install.
I’ve tried to:
1) delete and copy the “C:\Windows\System32\msvcr100.dll” file – didn’t work
2) install the “vcredist_x86.exe” – didn’t work
3) install the "mysql-connector-odbc-noinstall-5.2.6-win32.zip", the “myodbc-installer.exe” returns "Application can’t be initialized (ox000007b)" (even passing “/?”) 

Any suggestions?
[31 Jan 2014 18:57] Joao paulo Rodrigues
Guys,
This is because the Microsoft Visual C++ 2010 Redistributable Package must be installed.

32bit version
http://www.microsoft.com/en-gb/download/details.aspx?id=5555

64bit version
http://www.microsoft.com/en-us/download/confirmation.aspx?id=14632

Thank you David Homer.
http://david-homer.blogspot.com.br/2013/12/mysql-odbc-driver-fails-with-error.html

If it didn't work, try to Install Microsoft .NET Framework 4.0.
[12 Feb 2014 23:15] Rob Fleischmann
I am running Microsoft Windows Server 2008 R2 64bit with .NET 4 installed.

I attempted the following

1) Attempted to just reinstall The Microsoft Visual C++ 2010 Redistributable Package (64bit)
2) Manually remove "C:\Windows\System32\msvcr100.dll"
3) Reinstall The Microsoft Visual C++ 2010 Redistributable Package (64bit). It prompted for a repair, I went with that option.

No luck, so any help is appreciated. Thanks!
[13 Feb 2014 16:01] Rob Fleischmann
Actually it works, please disregard my above comment. The server had x64 VC++ installed and I had to remove it and install the non 64bit VC++.
[7 May 2014 8:16] Adinath G
install mysql odbc connector 3.51 for windows server 2008r2, its work fine.
[4 Aug 2015 19:10] Shakeel Mir
i am using Window server 2008 R2 and i am trying to installed the mysql-connector-odbc-3.51.30-winx64 and getting error 1918 error installling ODBC driver mySQL ODBC 3.51 driver ODBC could not be loaded due to system error code 126. the specified module could not be found ...\myodbc3s.dll..
[18 Mar 2016 10:30] Gustav Brock
Thanks [31 Jan 2014 18:57] João Paulo Rodrigues 

Install of the V++ 86 runtime worked for me on 32-bit Windows 10.