MySQL service failed to read description, error code: 2

Scenario: when 360 is used to remove garbage, a MySQL configuration file is deleted (PS: it should be the registry), resulting in a prompt: “MySQL service failed to read the description, error code: 2”

terms of settlement:

Detailed steps:

CMD administrator starts
switch to the database bin directory
enter the command SC delete MySQL
restart the computer
repeat actions 1 and 2
enter mysqld.exe – install
net start MySQL
precautions:

Restart the computer after the third step
in the sixth step, enter mysqld.exe – install instead of mysql.exe – install

 

Original link: https://blog.csdn.net/weixin_ 42437102/article/details/106380319

 

Similar Posts: