A Windows service with the name MySQL already exists. How to solve this problem

  • 2021-01-19 22:29:58
  • OfStack

If you have installed mysql before and uninstall it, you will most likely encounter the message "A Windows service with the name MySQL already exists." The service already exists.

We can check in the window task manager ---- service and find that it does exist and does not uninstall cleanly.

To solve this problem, you can use the following command in the dos window:


sc delete mysql

If successful, the following results appear:

[SC] DeleteService SUCCESS

After that, restart the computer. If you look again in the task manager ---- service, you will see that the mysq service is missing.


Related articles: