Cannot Create Windows Service for MySQL. Error:0

If you have MySQL installed (from XAMPP or otherwise) on an xp box (this ones x64) and you update to SP2 it seems to break the mysql service – at least it did for me.  This has happened several times to me but is actually easily resolved. Firstly I tried re-installing mySQL but this brought the problem “Cannot Create Windows Service for MySQL. Error:0″ when trying to install the actual service post install.
To get over this you need to wipe the service out so MySQL can recreate it.  Make sure you have admin rights on the box and go to CMD and enter:

sc delete mysql

That should delete the service, then if your in XAMPP just restart the service from your control panel and it will pop up allowing you to add a firewall rule. If you arent using XAMPP simply reinstall mysql after uninstalling/deleting service as above.

This entry was posted in Uncategorized. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

5 Comments

  1. Haze
    Posted June 21, 2009 at 1:51 pm | Permalink

    I’ve trawled through pages and pages of Google searches, all the results claiming their method works, yet yours is the only one I’ve found to be successful!

    Thanks.

  2. nanoblast
    Posted June 27, 2009 at 2:12 pm | Permalink

    hi my problem is, I am trying to install MySQL on my Vista x64…
    the installer I have is MySQL5.1 for 64 bit windows (yes I’m sure)…

    the point is… I never had MySQL on my PC before, but still get the same problem… well at the first install the server couldn’t be started (it created, but I cannot start even at windows task manager, or service manager)

    please Help I need it for an L2j server

    Thanks: Zsolt

  3. Posted July 6, 2009 at 9:54 pm | Permalink

    You should be fine on vista x64…although its not my preference for an OS unless you have 8gb + ram.

    Does the above not solve it?

  4. Neven
    Posted August 29, 2010 at 3:00 pm | Permalink

    Thank You very very much. I tried so many “solutions” but just yours helped. :)

  5. Posted August 29, 2010 at 8:30 pm | Permalink

    No worries :D

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
Woody Hayday

    Join my mailing list!

  • Categories

  • Archives