-
The Previous Posting
« We’ve Added A Live Support Function… -
The Next Posting
AT&T U-verse 2wire Gateway and DD-WRT Router in DMZ Mode… »
MySQL Server on Windows Vista x64 Setup Guide, An Install That Works!!!

After hours of beating our heads against a wall, we’ve finally come up with a solid MySQL install guide. It wasn’t easy, but it’s something we needed, and obviously something our fellow developers needed. We spent hours reading through endless threads with errors such as;
Cannot Create Windows Service for MySQL. Error:0,
Vista x64 could not start the service mysql,
Windows could not start the mysql service on local computer error 1067,
Can’t create/write to file,
Can’t connect to [local] MySQL server,
Table ‘tbl_name’ doesn’t exist,
Yet even after reading through what seemed like hundreds of cries for help, and just as many supposed fixes, we were still no closer to resolving this issue. So after coming to the realization that there was little help to be had online, we just attacked our install, and dealt with the issues one by one. After repeated failed installs, and botched setups, we were able to get MySQL loaded properly. The setup instructions you see below were repeatable on 4 different machines, when followed properly. If you run into an issue, please let us know. Good luck with your setup.
MySQL Vista x64 Setup Guide By The Gurus
We’re going to make this as easy, as straight forward, and as thorough we can. You’ll get best results from a clean install. We attempted to modify an existing setup with mixed results, most often failure.
If you’ve run the installer once before, you’ll need to remove the following registry key.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services With the “Services” key selected and highlighted, look to your right, and delete the string named “Description” with a Data Value of “MySQL Ser”.
In some instances you may find that “my.ini” has been saved to the root of your drive, or other locations. These files will need to be deleted. While its rare with the current installer, it can, and will error out your install. Check the following locations. MySQL accesses my.ini files in this order. C:\Windows\my.ini C:\Windows\my.cnf C:\my.ini C:\my.cnf C:\mysql\my.ini C:\mysql\my.cnf
Now you’re ready to install MySQL.
Our computer setup, Windows Vista Ultimate x64, IIS7, PHP. This machine is also running Zonealarm. For our install we set Zonealarm to “Game Mode” and “Allow All”. You may also want to disable your Anti-Virus, and Firewall applications temporarily.
Download: mysql-essential-5.1.37-winx64.msi
When choosing a setup type, choose “Custom Install” . Select and highlight “MySQL Server” and change the install directory to C:\mysql\ The folder does Not need to exist, it will be generated. Right below it, select and highlight “MySQL Server Datafiles” change this install directory to C:\mysql\ as well.
Run the installer.
After the installer completes, unselect “Configure Server”. Go to your install directory, and open your bin folder, C:\mysql\bin\. Right click mysqld.exe, choose properties, and set it to a Compatibility mode of “Windows XP (Service Pack 2)”. For good measure, we also did the same with mysql.exe. But note that we were able to get a valid setup with only mysqld.exe set to compatibility mode.
Navigate to All Programs, “MySQL”, “MySQL Server 5.1”, and click “MySQL Server Instance Config Wizard”.
Assuming this is a developer machine, the configuration goes as follows.
Choose “Detailed Configuration”.
Next page choose “Developer Machine”.
Next page choose “Multifunctional Database”.
This seemed to be an important step in our install. On the “InnoDB Tablespace Settings” page, leave C: as the root drive, but change the directory in next dropdown to \Data\ . This will generate the data directory that most default installs are missing.
Next page choose “Decision Support”
Next page choose “Enable TCP/IP Networking, port 3306, and put a check in “Add firewall exception for this port”, also put a check in “Enable Strict Mode”. Most of these are defaults.
Next page choose “Standard Character Set”.
Next page choose “Install As Windows Service” service name “MySQL” “”””BIG NOTE HERE “”“DO NOT””” put a check mark in “Launch the MySQL Server automatically”.”””” Launch automatically caused errors every time. You may also want to put a check in “Include Bin Directory in Windows PATH”, this may come in handy later down the road.
Next choose a password; ours worked using a phone number. ie. numerical code 7654321, complexity didn’t seem to matter here.
Execute your install. Everything should install without trouble.
Now you’ll need to make your new MySQL service start automatically. Go to run, type services.msc Or navigate to Control Panel, Administrative Tools, and Services. You should see MySQL running as a service. Right click MySQL, choose properties, and set the startup type to “Automatic”. Hit apply, and ok, and that’s it. You’ve now got functioning MySQL database, on your Vista x64 computer. These instructions should also apply to Windows XP, and Windows 7. Please let us know either way.
Tell us how your setup went. Were we thorough enough? Did we miss anything? Let us know by leaving a comment. Thanks for reading, and happy computing.
I’ve almost lost all of my hair trying to get MySQL to install on Windows 7 x64. Following these steps I successfully installed 64-bits MySQL 5.1.42 on Windows 7 x64. Only difference was that I couldn’t choose XP for compatibility mode for some reason. Thanks A LOT!
Wow… Congrats on the install. That’s definitely not an easy feat. I’ve personally only recently adopted Windows 7 X64. The install you just accomplished being one of the many obstacles I’ve been dreading, but at least now I know it can be done.
I don’t know about you, but I’ve been extremely happy with my upgrade. Windows 7 X64 is starting to look like one of the most agile, and refined operating systems I’ve used in quite awhile.… Well that is after I spent 2 days trimming the fat, and using every tweak and registry mod in our big bag of tricks.
Anyways, I’m glad our articles are helping people. Keep the comments coming.
Hasn’t helped me (yet) as the Config Wizard still fails when installing the service, sometimes a red X, sometimes it just freezes forever.
Go back and review your error log, that’s how we were able to provide this fix. I’m guessing your problem is related to a different aspect of the install. Good luck.
Everything looks good, except that Vista still thinks that there is a MySQL service in the old directory, so it will not allow me to install MySQL as a Windows service. MySQL.exe no longer exists in the old directory, so it cannot be removed. Any ideas?
Thanks for all your help!
We would probably suggest deleting the service. But before you do so, back up your registry. A good tool for this is Erunt Its an oldie, but a goodie. Once you’ve got a good backup, view your services by using the following command…
services.mscLook for you’re running MYSQL service, open its properties, and copy its “Service Name”, probably “MySQL” or something similar. Then run the following command to delete the service. Hint: the quotes are only needed in this command if there’s a space in the service name. Otherwise don’t use quotes, and replace the service name with the desired target.
SC DELETE "Service Name"Hi,
I have been trying to do the same for the last 3 months but was unsuccessful. Everytime the installer used to go in unresponding state while trying to start the service.
But your solution has worked perfectly. Thanks a lot.…
THANK YOU SOOOOOOOOOO MUCH, i’ve been on this for days and a deadline is looming.