Home > Article > Operation and Maintenance > Mysql cannot be started in phpstydy
Problem:
After installing phpstudy, Apache can start, but Mysql cannot start.
Reason:
Mysql has been installed before, so I need to delete MySQL in the system service and leave the MySQL service.
Solution:
Enter: sc delete mysql
at the cmd command line to delete the mysql service.
When we use sc delete service name in cmd to delete the service, an error is reported, SC OpenService failed 5: Access denied, which seems to be due to insufficient permissions.
Solution:
The first step is to obtain administrator rights and run cmd.exe with administrator rights.
The second step is to enter the command: sc delete
The service name to be deleted
Recommended tutorial: phpstudy tutorial
The above is the detailed content of Mysql cannot be started in phpstydy. For more information, please follow other related articles on the PHP Chinese website!