Now that we have installed PHP 5 on IIS 7 successfully, we’re going to install MySQL Server 5.1.
- First of all, get yourself a copy of the MySQL Server 5.1 ZIP Setup from http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.22-rc-win32.zip/from/pick#mirrors
- Extract all the files from the archive and launch Setup.exe
- I’ve chosen to use the Typical Setup but feel free to customize the installation to suit your needs.
- Once the installation is completed, leave the checkbox Configure the MySQL Server now checked and go through the Detailed Configuration.
- I’ve selected Server Machine as the server type and Multifunctional Database usage but again set this as you prefer.
- I’ve also left all the default settings until the Windows Options window where I’ve checked Include BIN directory in Windows Path.
- Set the root password and you’re done.
Your MySQL Server should now be running. If you want to manage it, you can download and install the MySQL GUI Tools.
Configuring PHP5 to Access MySQL Server
- Open c:\php\php.ini with your favorite text editor.
- Uncomment the following lines by removing the semi-colon:extension=php_mysqli.dll
extension=php_mbstring.dll
extension=php_mcrypt.dll
- Restart the IIS service: Start => Programs => Administrative Tools => Services => World Wide Web Publishing Service => Restart
If all went well, you should see the mysqli section on the PHP information page created earlier (http://your-server/phpinfo.php).

3 responses so far ↓
1. Response by : Jenley on Mar 14, 2008 at 4:29 pm
downloaded mysql-5.1.23-rc-win32.zip.
Ran set, configure sql server now…..nothing.
ran wizard manully, error.
[Window Title]
C:\Program Files\MySQL\MySQL Server 5.1\bin\MySQLInstanceConfig.exe
[Content]
C:\Program Files\MySQL\MySQL Server 5.1\bin\MySQLInstanceConfig.exe
The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail.
[OK]
Idea please??
2. Response by : Vladimir on Mar 27, 2008 at 11:44 pm
Hi!
Take a look here for solution:
http://forums.mysql.com/read.php?11,195569,195569
3. Response by : How To Install Your Own Web Server - Installing MySQL 5 on Jun 3, 2008 at 5:41 am
[...] If you’re about to install MySQL on MS Windows Server 2008, I suggest you read my post here. [...]
Leave a Comment