How to Install MySQL on Windows 11

Install MySQL on Windows 11 step by step, create your root password, configure the service, and run MySQL locally.

MySQL Beginner Updated: May 2, 2026
How to Install MySQL on Windows 11
STEP 01

Download MySQL

Open the official MySQL download web page at:

https://dev.mysql.com/downloads/installer/

Download the latest version of MySQL: Windows (x86, 32-bit), MSI Installer

MySQL Installer

mysql-installer-web-community-8.0.46.0.msi (~2-3 MB): Installer only, downloads MySQL components during the setup process.

mysql-installer-community-8.0.46.0.msi (~300+ MB): This is the full, standalone bundle. It includes the installer and all the actual MySQL products.

No Account Needed

After selecting the MSI installer, MySQL may show Login and Sign Up buttons.

Look below the buttons and click:

No thanks, just start my download.

STEP 02

Install MySQL Community Server

Run the MySQL MSI Installer.

During the installation. Set your root password, and port: 3306

STEP 03

Test MySQL

To check if MySQL has been successfully installed, open up the command prompt [cmd] and type:

cmd
mysql -u root -p

If You Get This Message

'mysql' is not recognized as an internal or external command,
operable program or batch file.

Add MySQL to the Environment Variables:

To ensure Windows can find MySQL, you must add it to the PATH environment variable.

Click the Windows Start button and type “env". Press Enter.
Select the Advanced tab, and click the Environment Variables button.

Scroll down the [System variables] list and click on Path. Click the Edit button. Click New and add C:\Program Files\MySQL\MySQL Server 8.0\bin

OK your way out.

STEP 04

Login MySQL

Open up the Command Prompt and type:

cmd
mysql -u root -p

Type your mysql root password and press Enter.

Welcome to the MySQL monitor.

Life Craft Alatyr symbol
Part of the Life Craft Network
Life Craft
Body Mind Spirit Craft
Enter the Guild →