Error Messages > Cannot Create Windows Service for MySQL. Error:0
Categories
Definition
When the MySQL server is installed as a service on Windows, it tries to use the service name mysql by default. If a previous installation was not completely removed before installing, this error can be encountered. This occurs because the mysql service already exists on the machine.
Sample
Cannot Create Windows Service for MySQL. Error:0
Resolution
- Choose a different service name when installing.
- On Windows XP or newer, remove the old service with the sc command:
C:\> sc delete mysql
[SC] DeleteService SUCCESS - On Windows 2000, download the delsrv.exe tool from http://download.microsoft.com/download/win2000platform/WebPacks/1.00.0.1/NT5/EN-US/delsrv.exe and delete the process with delsrv mysql.
Further Reference
Windows Troubleshooting (MySQL Reference Manual)