MySQL cannot start the service --NET HELPMSG 3534

1. Problem overview

After installing MySQL, when using net start mysql, the service cannot be started

 

2. Solutions

1. Check the error log

There is a problem. The first step is to check the error log, use mysqld --console to print the error message, and find that it is Failed to find valid data directory. It is found that the database storage directory cannot be found, that is, there is a problem with the data folder.

2. Delete the data folder and suspend the service

1) Manually delete the data folder you created

2) Then open the command prompt window (that is, the cmd window) in the administrator mode, enter the bin directory, and remove your own MySQL service
 

 

3. System initialization, restart service

Execute mysqld --initialize-insecure in the bin directory    . The program will automatically create the data folder and corresponding files in the MySQL installation root directory, which will take a little time. Then, reinstall and start the mysql service.

 

Guess you like

Origin blog.csdn.net/zhanglixin999/article/details/130805789