Installing the latest version of MySQL on Windows 11

  1. Download MySQL Installer
  2. Run the Installer
  3. Installation Process
  4. Configuration
  5. Execute and Complete Installation
  6. Add MySQL to System Path (Optional for CLI Use)

Download MySQL Installer

Go to the official MySQL website: https://dev.mysql.com/downloads/installer/

Choose MySQL Installer for Windows (.msi file). Download the “MySQL Installer (Full)” (larger size) to avoid downloading additional components later.

Run the Installer

Double-click the downloaded .msi file to launch the installer.

Choose the “Custom“ installation if you want to select components manually or specify install directories for its components.

Installation Process

  1. Click Next to continue.
  2. The installer may download and install required dependencies like Visual C++ Redistributable.
  3. Once ready, click Execute to install MySQL.

Configuration

  1. Server Configuration
  • Choose Standalone MySQL Server.
  • Select Development Machine for minimal memory usage or Server Machine for production.
  1. Connectivity
  • Leave the default TCP/IP (port 3306) or change if necessary.
  • Ensure Firewall Exception is enabled.
  1. Authentication
  • Choose Strong Password Encryption (Recommended).
  • Set the root password (keep it safe).
  1. Accounts
  • Create a MySQL user (optional, root user can manage everything).
  1. Windows Service
  • Name the service (default is MySQL80).
  • Select Run as a Standard System Account.

Execute and Complete Installation

  • Click Execute to apply configurations.
  • Once done, click Finish

Add MySQL to System Path (Optional for CLI Use)

  1. Go to Settings > System > About > Advanced System Settings > Environment Variables.
  2. In System Variables, find Path and click Edit.
  3. Add:
1
C:\Program Files\MySQL\MySQL Server 8.0\bin
  1. Restart Command Prompt and verify:
1
mysql --version