net start mysql: unable to start

Possible situation: 3306 port number is occupied (the default port number of mysql database is 3306)

1. Check whether the port number is occupied

View it under the dos window (it is recommended to open it as an administrator, and ordinary users may not have enough permissions when starting the service later)

netstat -ano|findstr “3306”

Although I didn't open it as an administrator here
The last column is the PID number (process identification number)

2. End the process

Execute the following command in the dos window, 5808 is my pid number, you need to replace it with your pid number! ! !

taskkill /pid 5808 /F

insert image description here
If the dos window is not opened as an administrator, the process cannot be killed
insert image description here

3. Execute net start mysql to start the service

insert image description here

Guess you like

Origin blog.csdn.net/qq_38432089/article/details/123670788