MySQL 5.7.19 未安装。给出同样的错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45275872/
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.19 not installing. Giving same error
提问by Karan Gupta
I have been trying to install MYSQL 5.7.19 but it gives me the following error while installing the "MYSQL SERVER 5.7.19" although the rest of the things are installed perfectly.
我一直在尝试安装 MYSQL 5.7.19,但是在安装“MYSQL SERVER 5.7.19”时它给了我以下错误,尽管其余的东西都安装得很完美。
1: Action 14:02:10: INSTALL.
1: 1: MySQL Server 5.7 2: {EC09D203-422B-4C9F-B623-230EF57EE709}
1: Action 14:02:10: FindRelatedProducts. Searching for related applications
1: Action 14:02:10: AppSearch. Searching for installed applications
1: Action 14:02:10: 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: {EC09D203-422B-4C9F-B623-230EF57EE709} 3: 3
1: The action 'Install' for product 'MySQL Server 5.7.19' failed.
After this, I installed the "VISUAL C++ Redistributable 2013" as I could not find the "Visual Studio 2013 Redistributable". First thing I want to ask is are these two the same? If not then where to find the "Visual Studio 2013 Redistributable". After installing the "VISUAL C++ Redistributable 2013", I still get the same error. Another thing is, if I don't install 'MySQL Server 5.7.19' and let it fail, will my MySQL not work properly?
在此之后,我安装了“VISUAL C++ Redistributable 2013”,因为我找不到“Visual Studio 2013 Redistributable”。我首先要问的是这两个是一样的吗?如果没有,那么在哪里可以找到“Visual Studio 2013 Redistributable”。安装“VISUAL C++ Redistributable 2013”后,我仍然遇到同样的错误。另一件事是,如果我不安装“MySQL Server 5.7.19”并让它失败,我的 MySQL 会无法正常工作吗?
回答by newbie
This happened to me as well today actually. 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 Peter Húbek
Simple workaround (there's a bug in msi install sequence file):
简单的解决方法(msi 安装序列文件中有一个错误):
- download and install the server through the web installer and let it failed
- open C:\ProgramData\MySQL\MySQL Installer for Windows\Product Cache\mysql-5.7.20-winx64.exe or download msi installer from CDN (you can take the correct url from the installer logs)
- install the mysql-5.7.20-winx64.exe but exclude "Server Data Files"
- re-run the web installer and click "Quick Action / Reconfigure" and configure you mysql instance
- add the required packages
- 通过网络安装程序下载并安装服务器,让它失败
- 打开 C:\ProgramData\MySQL\MySQL Installer for Windows\Product Cache\mysql-5.7.20-winx64.exe 或从 CDN 下载 msi 安装程序(您可以从安装程序日志中获取正确的 url)
- 安装 mysql-5.7.20-winx64.exe 但排除“服务器数据文件”
- 重新运行 Web 安装程序并单击“快速操作/重新配置”并配置您的 mysql 实例
- 添加所需的包
回答by Pnia
I had the same problem with MySQL Server 5.7.19 x64.
我在MySQL Server 5.7.19 x64 上遇到了同样的问题。
I installed Visual Studio 2013 Redistributable x64but it does not works, so you have to install Update for Visual C++ 2013 and Visual C++ Redistributable Packagewich can be found here https://support.microsoft.com/en-us/help/3179560/update-for-visual-c-2013-and-visual-c-redistributable-package.
我安装了Visual Studio 2013 Redistributable x64但它不起作用,所以你必须安装Visual C++ 2013 和 Visual C++ Redistributable Package 的更新,可以在这里找到https://support.microsoft.com/en-us/help/3179560 /update-for-visual-c-2013-and-visual-c-redistributable-package。
With this solution you can install v5.7 instead of v5.6.
使用此解决方案,您可以安装 v5.7 而不是 v5.6。
Credits goes for Jafeth Carrillo Salas, https://forums.mysql.com/profile.php?169,11205311
学分也适用于Jafeth卡里萨拉斯,https://forums.mysql.com/profile.php?169,11205311
回答by Red Boy
This seems duplicate of MySql 5.7 installer fails to detect VS 2013 redistributable. 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.
这似乎是MySql 5.7 安装程序的副本未能检测到 VS 2013 可再发行组件。我遇到了同样的问题,我尝试了多次,甚至删除了 Visual Studio Redistribute 2013 的多个版本,但没有安装 MySql V5.7。我尝试了 x86 和 64 位,但结果相同。
Solution:I have downloaded MySql Version 5.6 instead 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 betaros
You can find answers to your question at the install instructions at mysql.com. To install the server you need the Visual Studio C++ 2013 Redistributable, which you can find at Microsoft.
您可以在mysql.com上的安装说明中找到问题的答案。要安装服务器,您需要 Visual Studio C++ 2013 Redistributable,您可以在Microsoft.
If your MySQL will work properly, if you don't install the server depends on your needs. If you just connect to another server somewhere else I don't see any problems.
你的MySQL能不能正常工作,如果不安装服务器就看你的需要了。如果您只是连接到其他地方的另一台服务器,我看不出任何问题。
回答by walter arguello
Simple workaround (there's a bug in msi install sequence file):
简单的解决方法(msi 安装序列文件中有一个错误):
download and install the server through the web installer and let it failed open C:\ProgramData\MySQL\MySQL Installer for Windows\Product Cache\mysql-5.7.20-winx64.exe or download msi installer from CDN (you can take the correct url from the installer logs) install the mysql-5.7.20-winx64.exe but exclude "Server Data Files" re-run the web installer and click "Quick Action / Reconfigure" and configure you mysql instance add the required packages
通过web installer下载并安装服务器,让它失败 打开C:\ProgramData\MySQL\MySQL Installer for Windows\Product Cache\mysql-5.7.20-winx64.exe 或者从CDN下载msi installer(你可以采取正确的url 从安装程序日志)安装 mysql-5.7.20-winx64.exe 但排除“服务器数据文件”重新运行 Web 安装程序并单击“快速操作/重新配置”并配置您的 mysql 实例添加所需的包
Thanks. It works for me.!!!
谢谢。这个对我有用。!!!
回答by Nagesh
Remove mysql server and install Visual C++ Redistributable Packages 32bit and 64bit both version after that resolve the issue.
删除 mysql 服务器并安装 Visual C++ Redistributable Packages 32bit 和 64bit 两个版本,然后解决问题。
https://www.microsoft.com/en-in/download/confirmation.aspx?id=40784vcredist_x64.exe vcredist_x86.exe
https://www.microsoft.com/en-in/download/confirmation.aspx?id=40784vcredist_x64.exe vcredist_x86.exe