Many PHP-based web applications require a MySQL database server to operate. This guide will walk you through installing and configuring the MySQL Community Server on a Windows machine.
Visit the official MySQL download page:
https://dev.mysql.com/downloads/mysql
Select your operating system:
Choose Windows
Select either the 32-bit or 64-bit version, depending on your system architecture.
Download the Windows Essentials package – it’s the lightest installer and includes what you need.
Launch the installer and follow the prompts.
On the Setup Type screen, choose Typical for the easiest configuration path.
After installation, you’ll be prompted to configure MySQL:
Choose Standard Configuration
(This is ideal for most applications.)
Ensure Install As Windows Service is selected.
Optionally select Launch the MySQL Server automatically.
Set a strong password for the root user.
Optionally check Enable root access from remote machines (helpful for external connections).
Click the Execute button to apply your settings.
All steps should complete successfully.
Open Command Prompt.
Navigate to your MySQL installation directory:
cd C:\Program Files\MySQL\MySQL Server X.X\bin
Run the MySQL CLI:
mysql -u root -p
Enter your root password when prompted.
To view available databases, run:
SHOW DATABASES;
✅ You’ve successfully installed and configured MySQL Server on your Windows system! It's now ready to be used with your web applications.