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.
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
Install MySQL Community Server
Run the MySQL MSI Installer.
Test MySQL
To check if MySQL has been successfully installed, open up the command prompt [cmd] and type:
mysql -u root -p
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.
Login MySQL
Open up the Command Prompt and type:
mysql -u root -p
Type your mysql root password and press Enter.