If you are visiting this page, most likely you have seen this on your screen after trying to reinstall MySQL 5.X
This is the MySQL Error 0, which usually follows a windows notification that mysqld.exe has stopped working. After reading many forum posts, it appears that there is no definite answer as to how to solve the problem. However, I finally came across a method that worked for me, and hopefully it will work for you. The OS in this scenario is Vista 32-bit.
The problem is MySQL did not properly uninstall. Remnants of MySQL still exist on your computer, and the configuration wizard can not create a new MySQL service because of this. An indication of this is the fact that while you were trying to reinstall MySQL, you may have been prompted to enter your "old password." A brand new configuration doesn't ask for this.
If MySQL is still Installed, run the MySQL Server Instance Config Wizard. (Should be found in your start menu under MySQL)
Select "Remove Instance".
Click Execute, and once complete, click finish.
Step 4)Open the Command Prompt
sc delete mysql
into the command prompt. If it fails, that's fine.
Step 6)Uninstall MySQL Server 5.X
via the control panel.
Open the C:\ directory.
Make hidden folders visible. You can do this by pressing alt to bring up the menu, then go to Tools -> Folder Options. Click the View Tab, and look for "Hidden files and folders." Then click "Show Hidden Files and Folders". (If you need more guidance on making hidden files visible, you can visit the Microsoft tutorial
In you C:\ drive, you will now see a folder named ProgramData that was not visible before. Open it.
If you see the MySQL Folder, Delete it!
Check the C:\Program Files directory. If you see a MySQL Folder, Delete it!
At this point, I was able to run the MSI Installer again and install MySQL
March 02, 2010