MySQL Forums
Forum List  »  Install & Repo

Re: Cannot Create Windows Service for MySQL. Error:0
Posted by: Umesh Shastry
Date: May 17, 2005 02:10AM

Hi!

[From MySQL Docs]

Error: Cannot create Windows service for MySql. Error: 0

This error is encountered when you re-install or upgrade MySQL without first stopping and removing the existing MySQL service and install MySQL using the MySQL Configuration Wizard. This happens because when the Configuration Wizard tries to install the service it finds an existing service with the same name.

One solution to this problem is to choose a service name other than mysql when using the configuration wizard. This will allow the new service to be installed correctly, but leaves the outdated service in place. While this is harmless it is best to remove old services that are no longer in use.

To permanently remove the old mysql service, execute the following command as a user with administrative privileges, on the command-line:

C:\>sc delete mysql
[SC] DeleteService SUCCESS

Take a look at http://dev.mysql.com/doc/mysql/en/windows-troubleshooting.html


also this may happens when you have installed MyQL in the C:/Program Files/....
the space between Program & files also prevent from creating/starting service..
So install MySQL server in C:/ itself say C:/MYSQL


Hope This Helps!

Regards,
Umesh Shastry
http://www.blogger.com/profile/02551756983528645221

Options: ReplyQuote


Subject
Written By
Posted
Re: Cannot Create Windows Service for MySQL. Error:0
May 17, 2005 02:10AM
May 02, 2007 10:32AM
March 26, 2009 05:19PM
May 17, 2009 07:38AM
May 23, 2009 05:53AM
August 10, 2009 04:49AM
August 13, 2009 04:12AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.