MySql 5.7 安装程序无法检测到 VS 2013 可再发行组件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45163588/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
MySql 5.7 installer fails to detect VS 2013 redistributable
提问by Bob Tway
Trying to install the latest version of MySQL Server - 5.7.19 - on a clean Windows server machine using the MySql installer MSI package.
尝试使用 MySql 安装程序 MSI 包在干净的 Windows 服务器计算机上安装最新版本的 MySQL 服务器 - 5.7.19。
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:
第一次尝试时,它告诉我它需要 Visual Studio 2013 Redistributable 的先决条件并安装它。但是,当尝试安装服务器时,它会抱怨:
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.
1:操作 10:59:21:安装。
1:1:MySQL 服务器 5.7 2:{F08E9C75-A42E-4962-8760-4CBD9CF35D7A}
1:操作 10:59:21:查找相关产品。搜索相关应用
1:行动 10:59:21:AppSearch。搜索已安装的应用程序
1:行动 10:59:21:启动条件。评估发射条件
1:此应用程序需要 Visual Studio 2013 Redistributable。请安装Redistributable,然后再次运行此安装程序。
1:1:MySQL 服务器 5.7 2:{F08E9C75-A42E-4962-8760-4CBD9CF35D7A} 3:3
1:产品“MySQL Server 5.7.19”的“安装”操作失败。
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.
我已经检查了注册表以确保 Windows 知道该软件包已安装,并且确实如此。
I've tried installing the previous version of MySql and that installs fine.
我试过安装以前版本的 MySql 并且安装得很好。
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.
所以我清理了所有安装并重新运行了包,这次还选择了 Workbench、Shell 和其他一些有用的工具。所有这些都安装得很好 - 除了服务器。这仍然需要已经安装的可再发行组件。
Where can I go from here?
我可以从这里去哪里?
回答by Prabhat
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.
我今天在安装 MySQL 5.7 时遇到了同样的问题,不知道该如何继续并找到您的问题。我确信我已经在我的机器上安装了 64 位版本的 Visual C++ Redistributable Packages。然后我安装了相同软件包的 32 位版本(URL:https: //www.microsoft.com/en-in/download/details.aspx?id=40784),MySQL 安装程序检测到并继续安装.
Looks like the installer was looking for 32bit install path. Hope this help.
看起来安装程序正在寻找 32 位安装路径。希望这有帮助。
回答by Hooger2243
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.
我在安装 MySQL 5.7.19 时遇到了类似的问题,我正在安装 x64 版本的 Visual C++ 可再发行组件,但它拒绝工作。最终能够以类似于 Prabhat 的方式绕过它,但安装了 x86 版本。工作至今。
Would have commented this on Prabhat's answer, but reputation restrictions.
会对 Prabhat 的回答发表评论,但声誉限制。
回答by Red Boy
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.
我遇到了同样的问题,我尝试了多次,甚至删除了 Visual Studio Redistribute 2013 的多个版本,但没有安装 MySql V5.7。我尝试了 x86 和 64 位,但结果相同。
Solution:I have downloaded MySql Version 5.6instead of 5.7, then its gets installed like a charm.
解决方案:我已经下载了 MySql 版本5.6而不是 5.7,然后它就像一个魅力一样安装。
Note:
笔记:
Seems like there must be some issue with the MySql V 5.7 installer.
似乎 MySql V 5.7 安装程序一定有问题。
回答by Heiko Ebens
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.
对于 64 位 MySQL 服务器安装,我建议更新 64 位版本的 Visual Studio 2013 Redistributable Package(在我的情况下从 12.0.30501 到 12.0.40660);可再发行包更新可以在这里找到。我在这个 MySQL 论坛帖子上遇到了这个解决方案,但之前使用了Prabhat(在不同的服务器上)的答案,它也有效。
回答by AES
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.
检查用户在此线程中发布的解决方案后,两种解决方案(为 32 位和 64 位架构安装运行时或安装较新版本的运行时)都有效。
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.
更好的解决方案是安装较新版本的VC++ 2013 x64 运行时。请确保您正在安装的文件版本为 ,12.0.40660.0
因为 MySQL 安装程序当前安装的是版本12.0.30501.0
,任何具有此版本或更低版本的文件都可能导致错误。感谢 Jafeth Carrillo Salas 提供的最佳解决方案,以及所有其他使用其他解决方法的用户。
We will fix this issue using the newer runtime version, you can track the status at this MySQL bug link.
我们将使用较新的运行时版本修复此问题,您可以在此 MySQL 错误链接中跟踪状态。
回答by monotonewang
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.
我的电脑系统语言是中文。起初,我安装了英文版的visual c++ 2013,它不能工作。然后,我卸载了visual c++ 2013(en)。安装visual c++ 2013(cn)。有用。
回答by newbie
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 linkto the installers. Hope it works for you, it did for me.
您需要做的是为 Visual Studio 2013 安装 Visual C++ Redistributable Packages,如果您出于某种原因安装了 2015 的软件包,则无关紧要。安装 x86 和 x64 版本。这是安装程序的 链接。希望它对你有用,它对我有用。
回答by AQuirky
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.
我在安装 MySQL 5.7.19 时也遇到了问题,因为安装声称在 16 位和 32 位版本都已安装时未安装 C++ Redistributable 2013。这里的其他答案都不适合我。
What I discovered is that after repairing my C++ Redistributable, the installer then found it.
我发现在修复我的 C++ Redistributable 之后,安装程序找到了它。
回答by Amir
Try following steps:
尝试以下步骤:
step 1.Got to https://www.microsoft.com/en-in/download/details.aspx?id=40784
步骤 1.到https://www.microsoft.com/en-in/download/details.aspx?id=40784
step 2.Click for downloading Visual C++ Redistributable Packages for Visual Studio 2013
步骤 2.点击下载Visual C++ Redistributable Packages for Visual Studio 2013
step 3.Check vcredist_x64.exefor 64 bit or vcredist_x86.exefor 32 bit
步骤 3.检查vcredist_x64.exe为 64 位或vcredist_x86.exe为 32 位
step 4.Click next and after downloading Install vcredist_** in your machine
步骤 4.点击下一步,下载后在您的机器中安装 vcredist_**
After then relaunch MySQL installerand repeat the mysql installation process.
然后重新启动MySQL 安装程序并重复 mysql 安装过程。