June 22, 2019
How to remove a MySQL Service in Windows
This post details the command to remove a MySQL Service in Windows.
Removing a MySQL service
To remove the default MySQL service you can run the following command.
mysqld.exe --remove
The mysqld.exe
may not already be in your path so you may need to locate it. It is typically found in the bin
folder of your MySQL install.
If you have given a custom name to the service you can specify this by adding the name to the remove command. For example if the service is called MySQL57_testing
then it can be removed with.
mysqld.exe --remove MySQL57_testing
Please note that this must be run as an administrator otherwise it will not have permission to remove the service,