MySql 5.7 installer fails to detect VS 2013 redistributable

MysqlWindows Server-2016

Mysql Problem Overview


Trying to install the latest version of MySQL Server - 5.7.19 - on a clean Windows server machine using the MySql installer MSI package.

On first attempt it told me it needed a prerequisite of the Visual Studio 2013 Redistributable and installed it. When trying to install the server, however, it then complains:

> 1: Action 10:59:21: INSTALL. > > 1: 1: MySQL Server 5.7 2: {F08E9C75-A42E-4962-8760-4CBD9CF35D7A} > > 1: Action 10:59:21: FindRelatedProducts. Searching for related > applications > > 1: Action 10:59:21: AppSearch. Searching for installed applications > > 1: Action 10:59:21: LaunchConditions. Evaluating launch conditions > > 1: This application requires Visual Studio 2013 Redistributable. > Please install the Redistributable then run this installer again. > > 1: 1: MySQL Server 5.7 2: {F08E9C75-A42E-4962-8760-4CBD9CF35D7A} 3: 3 > > 1: The action 'Install' for product 'MySQL Server 5.7.19' failed.

I've tried rebooting the machine - problem persists.

I've checked in the registry to ensure Windows knows the package is installed, which it does.

I've tried installing the previous version of MySql and that installs fine.

So I cleaned out all the installations and re-ran the package, this time also selecting Workbench, Shell and some other useful tools. All of it installed fine - except the Server. That's still demanding the redistributable which is already installed.

Where can I go from here?

Mysql Solutions


Solution 1 - Mysql

I had the same issue today while installing MySQL 5.7 and not sure how shall I proceed and found your questions. I was sure that I have installed the 64bit version of Visual C++ Redistributable Packages on my machine. Then I installed a 32-bit version of the same package (URL: https://www.microsoft.com/en-in/download/details.aspx?id=40784) and the MySQL Installer detected that and proceed with the installation.

Looks like the installer was looking for 32bit install path. Hope this help.

Solution 2 - Mysql

I had a similar issue while installing MySQL 5.7.19 where I was installing the x64 version of visual C++ redistributable and it refused to work. Eventually was able to get around it in a similar way to Prabhat, but installed the x86 version instead. Working so far.

Would have commented this on Prabhat's answer, but reputation restrictions.

Solution 3 - Mysql

I had a same issue, I tried multiple times, even removed multiple version of the Visual Studio Redistribute 2013, but MySql V5.7 didn't get install. I tried both x86 and 64 bit, but result was same.

Solution: I have downloaded MySql Version 5.6 instead of 5.7, then its gets installed like a charm.

Note:

Seems like there must be some issue with the MySql V 5.7 installer.

Solution 4 - Mysql

For a 64-bit MySQL server installation, I suggest updating the 64-bit version of the Visual Studio 2013 Redistributable Package (in my case from 12.0.30501 to 12.0.40660); the Redistributable Package update can found here. I came across this solution on this MySQL Forum post, but used the answer by Prabhat (on a different server) before and it worked too.

Solution 5 - Mysql

What you need to do is to install the Visual C++ Redistributable Packages for Visual Studio 2013, doesn't matter if you have installed the ones of 2015 for some reason. Install both x86 and x64 versions. Here's the link to the installers. Hope it works for you, it did for me.

Solution 6 - Mysql

I also had a problem installing MySQL 5.7.19 because installation claimed C++ Redistributable 2013 not installed when both 16 and 32 bit version were already installed. None of the other answers here worked for me.

What I discovered is that after repairing my C++ Redistributable, the installer then found it.

Solution 7 - Mysql

After checking the solutions posted by users in this thread, both solutions (either installing runtime for both architectures 32 and 64 bits or installing a newer version of runtime) work.

The better solution is to install the newer version of VC++ 2013 x64 runtime. Please make sure you are installing the one with a file version of 12.0.40660.0 as the one the MySQL Installer currently installs is version 12.0.30501.0, and any with this or lower version may cause errors. Thanks to Jafeth Carrillo Salas for the best solution, and to all other users that contributed with other workarounds.

We will fix this issue using the newer runtime version, you can track the status at this MySQL bug link.

Solution 8 - Mysql

My computer system language is Chinese. At first,i install English version of visual c++ 2013 , it can't work. And than, i uninstall visual c++ 2013(en). install visual c++ 2013(cn). it works.

Solution 9 - Mysql

Try following steps:

step 1. Got to https://www.microsoft.com/en-in/download/details.aspx?id=40784

enter image description here

step 2. Click for downloading Visual C++ Redistributable Packages for Visual Studio 2013

step 3. Check vcredist_x64.exe for 64 bit or vcredist_x86.exe for 32 bit

enter image description here

step 4. Click next and after downloading Install vcredist_** in your machine

After then relaunch MySQL installer and repeat the mysql installation process.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBob TwayView Question on Stackoverflow
Solution 1 - MysqlPrabhatView Answer on Stackoverflow
Solution 2 - MysqlHooger2243View Answer on Stackoverflow
Solution 3 - MysqlRed BoyView Answer on Stackoverflow
Solution 4 - MysqlHeiko EbensView Answer on Stackoverflow
Solution 5 - MysqlnewbieView Answer on Stackoverflow
Solution 6 - MysqlAQuirkyView Answer on Stackoverflow
Solution 7 - MysqlAESView Answer on Stackoverflow
Solution 8 - MysqlmonotonewangView Answer on Stackoverflow
Solution 9 - MysqlAmirView Answer on Stackoverflow