How to Install MySQL in Apache for Windows

20 April 2007

MySQL MySQL is a powerful open source database server which widely used by many hosting providers around the world. This article will guide you how to install MySQL in Apache for Windows.

This article assumes that you already read the preceding articles:

MySQL Server Installation
  • Run the downloaded mysql-essential-4.1.x-win32.msi file and follow the setup instructions. If you cannot run the downloaded file then you might need to install Microsoft Windows Installer.


Click here to download Windows Installer 2.0 for Windows 2000 and for Windows NT.

Click here to download Windows Installer 2.0 for Windows Me, for Windows 98 Second Edition, for Windows 98, and for Windows 95.

  • Select Custom for the Setup Type.
  • Change the Install to folder to c:\apache\mysql for easier maintenance.
  • Click Next to confirm and continue the installation process.
  • Skip the MySQL.com account Sign-Up.
  • Make sure the Configure the MySQL Server now is checked after finish the installation. This option will open up the MySQL Server Instance Configuration Wizard.
  • Select the Standard Configuration that used for machine that does not already have a MySQL server installation.
  • Make sure to check Install as Windows Service and Launch the MySQL Server automatically.
  • In security options, check the Modify Security Settings and type your root password. Make sure you uncheck the Enable root access from remoter machines for security.
  • Click Execute to apply your configuration and finish setup.
MySQL GUI Tools

This is a single bundle including all GUI tools (MySQL Administrator, MySQL QueryBrowser and MySQL MigrationToolkit).

  • Run the downloaded mysql-gui-tools-5.0-r10-win32.msi and follow the setup instructions.
  • Change the installation folder to C:\apache\mysql\guitools\ for easier later maintenance.
  • Select Complete Setup and continue to finish the installation.
  • Although it might not necessary but I encourage you to restart your computer.
Test Your Installation
  • Check the MySQL Service Status
  • Go to Start – Run
  • Type services.msc and then click OK.
  • The Services window will appear. Search the MySQL service and make sure the Status is started.

In the next article I will describe “How to Install PHPMyAdmin in Apache for Windows”


  1. Kirill
    10 March 2007

    Thank you Very MUCHHHH for explication!!!
    Now i can use PHP with Apache and MySQL
    Thank you, man, you are the best!!!!!!!!
    Kirill from Argentina