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.
164 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
- tbx on Cannot create Windows Service for MySQL.Error:0
- bhumi on Cannot create Windows Service for MySQL.Error:0
- Sue on Cannot create Windows Service for MySQL.Error:0
- Shubham on Cannot create Windows Service for MySQL.Error:0
- Tommy on Cannot create Windows Service for MySQL.Error:0


Thanks! What an amazing fix, so simple. It worked well for me, now to get around Error 1045 (password problems most likely…).
Oh, fixed that too by following your instructions on removing and re-adding the instance. Got the password correct this time and it is going without a hitch.
Nice to see it works well for you, Simon!
Worked well for me too, though I had to manually delete the server after running the remove option, by opening a cmd window running as administratory (this is on Vista) and then issuing the command:
sc delete mysql
Then I ran it again with the standard configuration and it worked fine, just like you said. Thanks!
It doesn’t worked for me…
Thank you!
The first few links on google were useless, you on the otherhand solved my problem.
Thanks alot!
i could not find the remove instance option in the config wizard.
Just tried this…it didn’t work for me. The instructions were easy to follow, but when I went through the configuration wizard the second time, I got the error:0 again.
Thanks! Worked for me. Nice easy fix.
no, not for me, please help me.
Thanks Andy! I have been looking for a solution, it was just so easy
thanks alot. worked for me too.
Didn’t work for me. I removed all instances, but I still got the error. Thank you though.
It worked for me too!!! Thanks! After installing and uninstalling so many times… a simple solution that worked!!!
Did not work for me.
Thanks – trawling through the web got me nowhere until I found this solution.
Thanks
very nice. It works properly now
it don’t worked for me…
Es la mejor solucion que he encontrado.
Gracias
Thanks a lot – works like a charm, been pulling my hairs out for 2 days until now.
thanks – got mysql working at last!!!!!!!!!!!!! Its only taken a month.
This worked for me on my local Windows Vista SP1, but not for my server running Windows Server 2003 SP2. I think there are some extra security issues on the server… not sure.
You sir are a legend
Thanks!
Thank you Sir!
It has worked… Good that I did not follow other links and remove and reinstall it again… Thanks a LOT..
THANKS!!!!!
it didn’t worked
how can I fix it?
Thanks! It works for me.
thanks,it works,but during configuration look at your version,then click.
Hi
This didn’t work for me i went through the steps but still get the same error. Are there any other suggestions this is driving me mad and i need to get it.
Thanks
didnt work for me
OK. If you are having problems installing the latest 5.1 MySQL Server, install Version 4.1 Works perfectly
Thnx Dude, It really Works
Unfortunately, it did not work for me…
MySQL 5.1.34-win32 on Windows Vista.
Previously had MySQL installed, did not realize it when I installed 5.1.33 later, now cannot work on this PC. I’ve tried searching for and removing all “mysql” items in RegEdit.
i followed the steps you told us and it works!
i have tried to remove Instance during the Installing prozess, but it did not work. only when i went through “Start > All Programs >MySQL > MySQL Server 5.x > MySQL Server Instance Config Wizard ” and then chosed “remove Instance”l, it works! maybe there is something to do with the Registry….
Worked a treat, and a lot cleaner and clearer than other suggestions posted on the web – many thanks.
got it working on windows vista ultimate X32. thanks a load!
Andy,
Thank you for posting, and thank you to Mary who posted this link! Worked like a charm after spending a couple of hours trying everything else!
Thank you mucho. I had uninstalled/reinstalled over 10 times. But this worked just as advertised. And so simple!!
It work for me! thanks ….
Genius!
It worked and I have to say I’ve never used MySQL and have reinstalled a few times because I cannot get ODBC working and the forums haven’t helped but your advice was brilliant
Does NOT work!
La solucion es muy facil, lo unico que tienen que hacer es editar todas los archivos .ini (exepto uno) y cambiar la “/” por “\” guardar los cambios y listo funciona a la perfeccion, subi un video a youtube. para los que todabia tengan el problema busquenlo como
en youtube MySQL5 error: 0 Solucion, Solution
The solution is too easy, the one thing that they have to do is to edit everything files .ini ( I without one ) and changing her to keep changes and I list it works to perfection, I got up a video on youtube stops them than todabia, have the problem look for it like
Great !
It really works . Thank you !
Hey dude !! You´re efficient and simple, thanks a lot.
It Worked well for me, Thanks!
This is a nice clean solution, thanks a lot!
You just made my day. Thanks a lot.
THANK YOUUU. May God bless you =)
Thanks It works !
Didn’t work for me… tried around 10 times.