Home >Database >Mysql Tutorial >How to completely delete the mysql service?
Steps to completely delete the mysql service:
1. Close the mysql service
In cmd Enter the following command on the command line
net stop mysql
or right-click on My Computer->Manage->Services and close it manually after entering.
2. Delete the MySQL service
In cmd, enter sc delete mysql to delete the service.
But the MYSQL service only shows a disabled state and is not really cleaned up.
3. Delete related registry information
Use [win R] to open the run interface, enter regedit, and enter the registry editor
Path 1:\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\eventlog\Application\MySQL
Path 1:\HKEY_LOCAL_MACHINE \SYSTEM\ControlSet002\services\eventlog\Application\MySQL
Delete the entire MySQL folder
This way The MySQL service is completely cleared!
The above is the detailed content of How to completely delete the mysql service?. For more information, please follow other related articles on the PHP Chinese website!