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

StepWhat you do
1Install the Microsoft Visual C++ 2019 Redistributable Package
2Download the MSI from dev.mysql.com/downloads and run it
3Run MySQL Configurator when the wizard offers it
4Set the root password and click Execute
5Check the server with bin\mysqlshow -u root -p

The server will not start until it has been configured.

What you need before you start

ItemRequirement
Windows64-bit Windows only
RuntimeMicrosoft Visual C++ 2019 Redistributable Package, installed before the server
DownloadMSI from dev.mysql.com/downloads
Default locationC:\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

  1. Download the MSI from dev.mysql.com/downloads.
  2. Run the MSI to install the server, MySQL Configurator and the Start menu items in the MySQL group.
  3. 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.

TypeMeant forMemory use
DevelopmentA workstation running many other applicationsLeast
ServerA machine running other applications, such as a web serverMedium
DedicatedA machine dedicated to MySQLMost of the available memory
ManualNo optimization; my.ini defaultsUses 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.

FieldWhat the manual says
User NameUp to 32 characters
Hostlocalhost for local connections only, or All Hosts (%) for remote access
RolePredefined roles such as DB Admin and DB Designer
PasswordA 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

OptionWhat it does
Show Advanced and Logging OptionsUnlocks custom paths for the error log, general log, slow query log and binary log
Table Names CaseLower Case (the default) sets lower_case_table_names to 1; Preserve Given Case sets it to 2; initial configuration only
Sample DatabasesOptionally installs the sakila and world databases for testing and development
Existing installation foundOffers 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.

  1. Open Command Prompt.
  2. Go to the installation directory, which contains the bin subfolder.
cd “C:\Program Files\MySQL\MySQL Server 9.7”
  1. List the databases as root, entering the password you set when prompted.
bin\mysqlshow -u root -p

The list may vary, but it always includes at least mysql and information_schema.

If a command fails

SymptomWhat the manual says
Access denied or a password promptIf you configured MySQL with MySQL Configurator, add -u root -p to the command
Command not found or not recognizedYou 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 connectConfirm the server is running, then restart it the way you set it up

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.

Leave a Reply

Your email address will not be published. Required fields are marked *