Error when installing MySQL: vcruntime140_1.dll is missing from the computer

MySQL uses the zip installation package, the installation reports an error: this program cannot be started because VCRUNTIME140_1.dll is missing from the computer, try to reinstall this program to solve this problem

For the specific process of zip installation, please refer to: MySQL About the installation process of zip installation package

question:

When initializing MySQL on the cmd terminal (that is, running mysqld --initialize --console), an error is reported that the VCRUNTIME140_1.dll file is missing .

 

This solution used two steps (no need to restart the computer):

1. Download and install: Visual C++ Redistributable for Visual Studio 2015

Official website address: https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=48145

2. Download the vcruntime140_1.dll file, and copy vcruntime140_1.dll to the C:\Windows\System32 folder after decompression.

Download link: vcruntime140_1.dll free download | DLL‑files.com

Re-execute the MySQL initialization command, it can run normally!

Solving Explanations and Conjectures

This time, I first downloaded and installed Visual C++ Redistributable for Visual Studio 2015, and executed the initialization command again, but still reported an error.

Then download the vcruntime140_1.dll file and copy it to the C:\Windows\System32 folder, and the problem is solved.

So, not sure if you have to install the Visual C++ Redistributable for Visual Studio 2015! ! !

Guess you like

Origin blog.csdn.net/qq_37738899/article/details/127138607