Error when starting mysql service: The mysql server on the local computer stops after starting, and some services are in...

The error is as shown:

Solution: 1. Initialize the data file (in the mysql installation bin directory): mysql --initailize, it will take about half a minute to respond

2. If there is an error and the data directory already exists, there are two ways. One is to find the same level directory data of the installation bin directory and delete it directly (if you cannot delete it, choose the second method), and then re-initialize it again: mysql - -initailize

;The second method is simple: open the task manager directly, select mysqld.exe (usually this service, if there are other mysql services to be turned off together to save trouble), click to end the process, and finally start the mysql service

3. A very trouble-free method (it's better not to do this, maybe you have modified something in the previously configured service, and you have to add it again, this method is generally suitable for novices): delete the original service and re-register:

mysqld.exe service mysql

mysqld.exe -install

Start the service: net start mysql

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324735268&siteId=291194637