Fixing MySQL service in Windows

Fixing MySQL service in Windows

Adding the MySQL service on Windows

To add a missing mysql service in windows you need to do the following.

  1. Start cmd as admin
  2. Go to “C:\Program Files\MySQL\MySQL Server 5.6\bin
  3. type mysqld --install and hit enter.

The missing service should now be in the services list.

This will likely fail if the service already exists.

Removing an already existing MySQL service on Windows

To remove an existing mysql service so you can attempt to add it:

  1. start cmd as admin
  2. type sc delete MySQL and hit enter where MySQL is the name of the existing service.
  3. you should get a response similar to [SC] DeleteService SUCCESS