Cannot create Windows Service for MySQL.Error:0
I was installing MySQL on a Windows 2008 64bits machine today. The installation went smooth as usual, I got the MySQL configuration screen wizard at the end of the MySQL installation and went through filling in those service configuration details, MySQL root ..etc. However, at the end of the execution part where it writes the changes, it shows the following message during the attempt to start the MySQL services.
Cannot create Windows Service for MySQL.Error:0
It was my first time getting this message as I have been setting up MySQL for lots of Windows server without any issues on the past. Here’s what I did to get it resolve:
1. Start > All Programs >MySQL > MySQL Server 5.x > MySQL Server Instance Config Wizard.
2. Hit the Next and select the options “Remove Instance” and complete the process.
3. Fire up the MySQL Server Instance Config again, this time select the Configure Instance with Standard Configuration and go through the setup again. It should get your MySQL configured again.
The possible cause of the error is due to the MySQL Services has been installed and started on your server’s prior to the configuration by MySQL. Removing the installed instances and reset it up will help to resolve this.
129 Comments to “Cannot create Windows Service for MySQL.Error:0”
Post comment
Categories
Recent Posts
- yum update – TypeError: unsubscriptable object
- Magento with Windows IIS
- Helm3 : File Manager Not Showing any Files
- Helm4 Error on Remove Domain
- SQL 2008 Maintenance Plan Execution Error
Recent Comments
- Superrookie on Cannot create Windows Service for MySQL.Error:0
- Martin on Cannot create Windows Service for MySQL.Error:0
- About MySQL.Error On Windows 7 | Robin Blog - UED, Open source, SEO, Marketing on Cannot create Windows Service for MySQL.Error:0
- Totally Frustrated MySQL Newbie on Cannot create Windows Service for MySQL.Error:0
- Simon on Cannot create Windows Service for MySQL.Error:0


Thanks a lot, worked like a charm and saved me hours of frustration! =)
Omg man! It worked! Thanks alot. I’ve been setup alot of MySQL on both Windows Server and Linux server at my company but never run into this problem.
Thanks!! It worked for me!
Thank You
thanks.. men… work this methods
Looks like half of People listed here with this Problem Failed to fix the Problem using this method. I am One of Those that this DID NOT work for.
Funny as the version MySQL Version 5.1.37 Essentials worked perfect in a previous install, only difference was the other install was Server 2008 Standard and this one Server 2008 Enterprise.
Anyone Please Help
And Post the Solution here for the other 50% of Posters
Regards
Colin
i’ve tried another solution without resource hacking.
After installation, I did not check both checkbox (for configuration & web site).
I’ve installed in c:\mysql & c:\mysql\data\data (little error on folder selection from me).
Then launch : MySQLInstanceConfig.exe
Starting service works (but not last state with error 1045)
Its Works..!.. thanks
but the error with the “Apply security Settings” >> I used W2k3 server with SP2 and MySQL 6
Thanks
It also works…
Thanks
Installing MYSQL5.1 for the first time. Installation fails and following instructions does not fix the problem when I delete the first and only instance of the installation. Service will NOT start. I thought this was supposed to be so easy? Even Windows Servers work the first time out. What is the issue here? Any ideas?
Installing on Vista Ultimate.
Thanks for this.
Problem not solved…Same problem occurring.
Thanks a lot, it solves my problem.
Regards,
Saadat R.Chaudhry
Thank you this worked perfectly…
Thank Lot Buddy this work you are genius
.
instructively put down , hasten to continuing.
Thanks, easy and strong solution.
GOD bless
Thanks a lot ~~ The problem have drove me crazy until I found this post.
It worked for me.Thats really great!!!
Thanks a lot
It worked for me.
1000 kisses.
it works!!!!! thanks a lot muah…..
Once I get to the point where all it has to do is “Start service” in the installation, the program stops responding.
the easiest way is to delete the service without uninstalling mysql, simply go to the command prompt and type “sc delete mysql” and then start the config wizard, it will workout just fine.
MAKE YOUR LIFE EASY MAN….
Didn’t work for me the first couple of times.
Then it finally worked but only after I used Detailed Configuration (not Standard).
This MySQL installation is a pile of garbage.
I can’t believe how many people have had this error and still there is not one of the solutions posted that actually work for me. Don’t these developers take their target user-base seriously? If this was commercial software the company would be out of business and we’d all have another solution from competent developers that actually worked.
[...] You can refer to this article to handle your problem. http://www.andy.name.my/2009/03/cannot-create-windows-service-for-mysqlerror0/ [...]
PROBLEM SOLVED: i have IIS7, PHP 5.3 and MYSQL 5.5. installed on my windows 2008 server.
1. UNINSTAL YOUR PHP AND DELETE DIR.
2. STOP THE MYSQL SERVICE- remove instance, AND UNINSTALL – windows uninstall
3. DELETE EVERY mysql dll file ON YOUR HARD DRIVE
4. START UP REGEDIT AND SEARCH FOR MYSQL, DELETE EVERY KEY THAT POINTS TO MYSQL.
5. REBOOT COMPUTER
The most important steps:
6. FIRST INSTALL MYSQL, USE STANDARD CONFIGURATION !!!!
7. THEN INSTAL PHP AFTER MYSQL
IT SEEMS THAT PHP BLOCKS MYSQL SERVICE WITH ITS OWN ONES.
Hope it helps.
I had problem the same problem after installing Visualstudio8 and downgrading PHP5.3 to PHP5.29
Had tried above suggestion but didn’t work,
Anyway, finally, I got a solution.
1. Uninstall PHP5 (
2. Run “MySQL Server Instance… configuration ”
3. Remove instance
4. Run “MySQL server… Configuration” again
5. Choose “Detail confi…”
6. Next , Next
7. At “InnoDB telespace… setting” ., choose “Modify” and brows a folder containing your DB part.
8. Click next until finish.