How To Install MySQL On Windows 11 (2026)
Quick answer
- Download the MSI from dev.mysql.com/downloads, run it, then run MySQL Configurator when the wizard offers it; set a root password, keep Configure MySQL server as a Windows service ticked, and click Execute.
- MySQL runs on 64-bit Windows only, and MySQL 9.7 Server needs the Microsoft Visual C++ 2019 Redistributable Package installed first.
- To check it works, open Command Prompt in C:\Program Files\MySQL\MySQL Server 9.7 and run bin\mysqlshow -u root -p.
Applies to: MySQL 9.7 on 64-bit Windows (steps follow the MySQL 9.7 Reference Manual)
The simplest way to install MySQL on Windows is the MSI package, which installs the server and the MySQL Configurator setup tool. The whole job takes a few minutes.
The MySQL manual recommends the MSI because it is simpler than the compressed ZIP file and needs no additional tools.
This guide follows the MySQL 9.7 Reference Manual, so menu names match the current MSI.
Table of Contents
- The steps at a glance
- What you need before you start
- Install the MySQL MSI package
- Choose the server configuration type
- Check the ports
- Set the root password and accounts
- Run MySQL as a Windows service
- Leave the file permissions on the default
- Apply the configuration
- Optional steps in MySQL Configurator
- Install silently from the command line
- Check that MySQL is working
- If a command fails
- Related guides
- More Windows guides
The steps at a glance
| Step | What you do |
|---|---|
| 1 | Install the Microsoft Visual C++ 2019 Redistributable Package |
| 2 | Download the MSI from dev.mysql.com/downloads and run it |
| 3 | Run MySQL Configurator when the wizard offers it |
| 4 | Set the root password and click Execute |
| 5 | Check the server with bin\mysqlshow -u root -p |
The server will not start until it has been configured.
What you need before you start
| Item | Requirement |
|---|---|
| Windows | 64-bit Windows only |
| Runtime | Microsoft Visual C++ 2019 Redistributable Package, installed before the server |
| Download | MSI from dev.mysql.com/downloads |
| Default location | C:\Program Files\MySQL\MySQL Server 9.7\ |
| Data and logs | %PROGRAMDATA%\MySQL\MySQL Server 9.7\ |
The manual does not list individual Windows versions on this page and points to MySQL’s supported platforms page instead.
Install the MySQL MSI package
- Download the MSI from dev.mysql.com/downloads.
- Run the MSI to install the server, MySQL Configurator and the Start menu items in the MySQL group.
- When installation finishes, let the wizard run MySQL Configurator now.
The manual says you can also run it later, or configure MySQL manually instead.
Choose the server configuration type
The Type and Networking step sets how much memory the instance uses.
| Type | Meant for | Memory use |
|---|---|---|
| Development | A workstation running many other applications | Least |
| Server | A machine running other applications, such as a web server | Medium |
| Dedicated | A machine dedicated to MySQL | Most of the available memory |
| Manual | No optimization; my.ini defaults | Uses 16M for tmp_table_size |
Check the ports
TCP/IP is selected by default, with the classic protocol port at 3306 and the X Protocol port at 33060.
The Open Windows Firewall port for network access option is also selected by default for TCP/IP.
If a port is already in use, an error icon appears and Next stays disabled until you enter a new port.
Disabling TCP/IP allows local host connections only.
Set the root password and accounts
The Root Account Password is required, and you repeat it so the configurator can check its strength.
You can also click Add User to create an optional account.
| Field | What the manual says |
|---|---|
| User Name | Up to 32 characters |
| Host | localhost for local connections only, or All Hosts (%) for remote access |
| Role | Predefined roles such as DB Admin and DB Designer |
| Password | A blank password is permitted but considered insecure |
Run MySQL as a Windows service
The Configure MySQL server as a Windows service option is selected by default.
The service name defaults to MySQL followed by the version number.
Start the MySQL Server at System Startup is on by default and gives an Automatic startup type; otherwise the type is Manual.
By default the service runs as the Standard System Account, which logs on as Network Service.
If you untick the service option, MySQL runs as a program that you must start manually.
Leave the file permissions on the default
The Server File Permissions step controls the Data folder under C:\ProgramData\MySQL.
By default, full control goes only to the Windows service user and the Administrators group, and all other users and groups are denied.
The Skip option makes no permission changes, so you would have to secure the Data folder yourself.
Apply the configuration
Click Execute to apply all settings.
Follow progress on the Configuration Steps tab, where each icon turns green with a check mark on success.
If an action times out, the process stops with an error, and the Log tab has the details.
Optional steps in MySQL Configurator
| Option | What it does |
|---|---|
| Show Advanced and Logging Options | Unlocks custom paths for the error log, general log, slow query log and binary log |
| Table Names Case | Lower Case (the default) sets lower_case_table_names to 1; Preserve Given Case sets it to 2; initial configuration only |
| Sample Databases | Optionally installs the sakila and world databases for testing and development |
| Existing installation found | Offers an in-place upgrade or a separate side-by-side installation |
An in-place upgrade replaces the existing installation and may also upgrade the data schema, and the existing server must be running.
Its dialog includes a Backup Data option that runs mysqldump before the upgrade.
Install silently from the command line
The manual shows a silent install that you run as Administrator.
msiexec /i “C:\mysql\mysql-9.7.4-winx64.msi” /qn /lv “C:\mysql\install.log”Adding INSTALLDIR=”C:\mysql” to the same command installs to a non-default directory.
The ZIP archive is the other method, but the page points to its manual-configuration section for the steps.
Check that MySQL is working
The manual’s post-installation page assumes the server is already running.
- Open Command Prompt.
- Go to the installation directory, which contains the bin subfolder.
- List the databases as root, entering the password you set when prompted.
The list may vary, but it always includes at least mysql and information_schema.
If a command fails
| Symptom | What the manual says |
|---|---|
| Access denied or a password prompt | If you configured MySQL with MySQL Configurator, add -u root -p to the command |
| Command not found or not recognized | You are not in the installation directory and bin is not on your PATH; run the cd command or use the full path |
| Commands fail to connect | Confirm the server is running, then restart it the way you set it up |
Related guides
If you want a local WordPress site that runs on a database like this, see how to install WordPress on your own PC.
If you also want a Linux command line on the same PC, see how to install WSL in Windows 11.
Official sources: Installing MySQL on Microsoft Windows, MySQL Server Configuration with MySQL Configurator and Windows Postinstallation Procedures.
More Windows guides
- How To Install Optional Updates In Windows 11 (2026)
- How To Use Winget To Install Apps In Windows 11 (2026)
- How To Install Docker Desktop On Windows 11 (2026)
- How To Install Git On Windows 11 (2026)
- How To Install Node.js And npm On Windows 11 (2026)
- How To Install RSAT Tools On Windows 11 (2026)
See all: Windows 11 Guides