在Win10下使用mysql-installer-community-5.7.20.0的msi包进行安装,试了好屡次,MySQL Server 5.7.20的安装状态都显示为Failed,安装失败。mysql
MySQL installer详细日志以下:c++
1: Action 20:16:10: INSTALL. 1: 1: MySQL Server 5.7 2: {81B27388-3733-4B65-8D84-AD9C9113B498} 1: Action 20:16:10: FindRelatedProducts. Searching for related applications 1: Action 20:16:10: AppSearch. Searching for installed applications 1: Action 20:16:11: 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: {81B27388-3733-4B65-8D84-AD9C9113B498} 3: 3 1: The action 'Install' for product 'MySQL Server 5.7.20' failed.
仔细查看日志,发现"This application requires Visual Studio 2013 Redistributable. Please install the Redistributable then run this installer again.",在安装过程当中确实提示须要安装Microsoft Visual c++ 2013 Redistributable。redis
但是我已经按照提示安装了,在系统的程序和功能里面也能看到"Microsoft Visual c++ 2013 Redistributable(X64) - 12.0.30501"的安装信息。sql
可是日志里面仍是提示须要安装Visual Studio 2013 Redistributable。app
试着搜索了一下,按照网上的提示升级安装了12.0.40660版本的Microsoft Visual c++ 2013 Redistributable,再安装MySQL Server 5.7.20,果真问题就解决了。ui
暂时不知道是什么缘由,多是mysql-community-5.7.20.0版的bug吧。
附上Microsoft Visual C++ 2013 Redistributable Package 12.0.40660的下载连接:
来源: Microsoft Supportthis
x86:点击下载lua
x64:点击下载spa