当前位置:网站首页>Windows11 MySQL service is missing

Windows11 MySQL service is missing

2022-06-25 11:42:00 Duxiaolie


One 、 Preface

solve to update windows11 after ,mysql The service doesn't connect , Problems that can't be found
to update window11 after ,MySQL The service failed . stay window Not found in service MySQL service . I don't want to reload MySQL, Fear of previous data loss, etc .


Two 、 step

1, Start the command window as an administrator (cmd), Enter into MySQL Of the installation path of bin Below directory .
my MySQL The installation path C:\Program Files\MySQL\MySQL Server 5.7\bin
 Insert picture description here

2, Input mysqld -install after , You can see that MySQL Yes .
 Insert picture description here
 Insert picture description here
Tips : If input mysqld -install No Service successfully installed., You can Baidu the cause of the error by yourself .

3, find my.ini file , Copy it to MySQL The installation path .
Tips : my my.ini File is in C On the plate C:\ProgramData\MySQL\MySQL Server 5.7.
Enter into Data In the folder , You will see the previous database data , The previous data is here .

 Insert picture description here
 Insert picture description here

4, Input net start mysql, You can start it .
 Insert picture description here

If you enter net start mysql, appear
MySQL The service is starting .
MySQL Service failed to start .
reason : Is that you did not my.ini File copy to MySql Installation path for .


3、 ... and 、 summary

1, No need to reinstall MySQL; Don't worry that the previous data will disappear .

2, Friendship tips :
my MySql The installation path :C:*Program Files*\MySQL\MySQL Server 5.7
my MySql Save data path :C:*ProgramData*\MySQL\MySQL Server 5.7. among ProgramData It's a hidden file .

3, If you can solve your problem , Please give me a compliment , Thank you !

Reference article :
1,MySQL install
2, Can't find... In the list of services in the control panel MySQL service

原网站

版权声明
本文为[Duxiaolie]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202200536132223.html