MySQL Install Hangs
I’m in the process of setting up WordPress on another server running Windows Server 2008 R2 following the same instructions I published for installing on Windows Server 2003 (see the series of articles here). I ran into some trouble with the step to install phpMyAdmin so I tried to uninstall everything, including PHP and MySQL. When I went to install MySQL again, it hung at the second step on the Ready to execute page, after the Write configuration file step was checked.
There is a question about this up at the MySQL forums, but the answers didn’t help me.
The one difference I found between the first install and subsequent installs was that the the reinstall asked for the current root password. This told me that the uninstall program didn’t uninstall everything. Here are the steps that worked for me on Windows Server 2008 R2. These steps will probably work on Windows Server 2008, Windows Vista, and Windows 7 as well. The steps will be slightly different on Windows Server 2003 or WIndows XP.
- Stop the MySQL service. Not sure why the uninstall program doesn’t offer to do this, but it doesn’t, so you have to do it manually.
- Uninstall MySQL.
- Delete the following folders:
- MySQL program files folder. For me this was
C:\Program Files\MySQL. - MySQL database folder. For me this was
C:\MySQL Datafiles. - MySQL application data folder. For me this was
C:\ProgramData\MySQL. On a pre-Vista operating system, this will likely beC:\Documents and Settings\All Users\Application Data\MySQLor some such.
(If someone tries this procedure on a pre-Vista operating system, let me know and I’ll update this info.)
- MySQL program files folder. For me this was
- Reinstall MySQL.
The key steps are deleting the above-mentioned folders. After doing that, MySQL should install just fine. Hope this helps you out.




November 7th, 2009 at 11:41 am
Worked a treat thanks.
My old, previously uninstalled MySQL installation was causing the failed re-install.
Noticed the root password setting was different on reinstall.
April 28th, 2010 at 8:30 am
Worked great. On my development machine I also had to delete MySQL from C:\Documents and Settings\All Users\Application Data
Until I did that, no combination of uninstall/delete from program files would work
April 30th, 2010 at 10:34 am
Did the trick. Thanks! I’ve been under the gun to get up a php/mysql application (my first) and these have been a big help.
May 1st, 2010 at 10:47 am
Thanks, that worked for me too!
May 8th, 2010 at 8:07 am
Thanks for this.
Fingers crossed, after following your steps (for my XP Pro SP3 laptop) and about to bounce the box before I try to instal MySQL for the 4th time today.
May 11th, 2010 at 1:13 pm
Thanks for the tip. I forgot about the Application Data folder.
May 16th, 2010 at 4:15 am
Hello David,
Just wanted to say hello and thank you for the mysql install fix. Your post did the trick for my setup.
June 19th, 2010 at 11:22 pm
Fantastic! I was pessimistic that it was this easy to fix our MySQL problem, but it absolutely worked. Thank you for posting!
June 26th, 2010 at 4:34 pm
David,
Had this symptom on XP Professional to a “T”. I had been deleting the “MySQL” folder in “Program Files” as several combinations of uninstall/reboot/reboot/Install before going to internet to search. I did not think about the “C:\Documents and Settings\All Users\Application Data\MySQL” which I ought of known better to do and delete. I was doing so for routine uninstall of non-problems a few days ago. Oh well, but not just fine and I have to put a post-it note on my head “Check both Program Files and All Users\Application Data” and let everyone who sees me in public see the post-it note on my head!
John
July 6th, 2010 at 11:13 am
On my XP SP3 machine it also worked. I think the password step was what was breaking my installation – it was freezing after the second checkbox – and I’d forgotten what password I’d picked after the first installation. No DB directory to delete as I hadn’t created any after the first install yet.
Cheers
Peat