天天看點

Windows安裝MySQL5.7.20時出現的問題及解決方案一. 錯誤資訊二. 錯誤原因三. 解決方案

一. 錯誤資訊

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

二. 錯誤原因

MySQL自動安裝的Visual C++ Redistributable路徑不對或者即使是x64的MySQL識别的也是x86的安裝路徑.

三. 解決方案

從微軟手動下載下傳 Visual C++ Redistributable并安裝, 簡體中文微軟官方下載下傳路徑為:

https://www.microsoft.com/zh-CN/download/details.aspx?id=40784,

點選下載下傳按鈕并将vcredist_x64和vcredist_86都下載下傳下來, 先安裝vcredist_x64後嘗試重新安裝MySQL, 假如依然報錯, 然後安裝vcredist_x86後再次安裝MySQL.