Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I uninstalled the MySQL server by removing the entire folder manually in my Win2k3 machine (since it was in a zip installation format), but the NT Service references are still dangling. How should I remove this stale service references.

share|improve this question
up vote 0 down vote accepted

Use the Windows sc.exe tool. Specifically, there are three steps:

  1. Get the service's display name from the Services control panel.
  2. Use sc.exe GetKeyName <service_display_name> to get the service's key name.
  3. Use sc.exe delete <service_key_name> to remove the service.
share|improve this answer

I'm assuming by "service references", you mean the service is still listed in the service manager. Services are stored in the registry. If you're sure you have removed it properly, you can find the service keys in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. Before making changes to your registry, remember to make a backup. Find the MySQL keys (not sure their name), right click on it, and select Export so you have a backup. When done, delete the key. You may need to reboot for the services manager to see it has actually gone.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.