Solve the problem of phpstudy MySQL startup failure under Windows system

Time:2020-10-21

report errors

The Apache / nginx service started normally, but MySQL failed to start all the time.

Solution process

Check whether the port is occupied

Open the resource manager provided by the system to check whether listening port 3306 is occupied. In the figure below, port 3306 is occupied mysqld.exe occupy, mysqld.exe It is a MySQL service provided by phpstudy. If it is not mysqld.exe If 3306 is occupied, you can follow the steps below to close it.

Open the service provided by the system

Switch local MySQL service

There are two MySQL services in the discovery service, one is MySQL and the other is MySQL la. The reason is that I have installed MySQL locally before, and the MySQL installed by myself is started by default. Now you just need to stop the MySQL service and start the MySQL La service.

summary

The above is about how to solve the problem of phpstudy MySQL startup failure under Windows system. I hope it can help you. If you have any questions, please leave me a message, and I will reply you in time. Thank you very much for your support to the developeppaer website!
If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!