MySQL  

How to Install MySQL 8.0 on Windows Server

Introduction

MySQL is a popular open-source database system used around the world. It supports web apps, data systems, and business platforms. Installing MySQL 8.0 on Windows Server is simple with the MySQL Installer, which takes care of setup and needed files automatically.

This guide gives easy steps to install, set up, and check MySQL 8.0 on Windows Server.

Screenshot_7

Prerequisites

  • Before you start, make sure you have the following:

  • You are logged in as an Administrator on the Windows Server computer.

  • You have an internet connection (for the web installer) or have already downloaded the full installer.

  • Windows Server is updated with the latest updates.

  • The server has at least:

    • 2 GB of RAM

    • 200 MB of free disk space for installation

    • .NET Framework 4.5 or higher

Step 1: Download the MySQL Installer

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

  2. Choose Windows (x86, 64-bit), MySQL Installer MSI.

  3. Select one of these options:

  • Web Installer (small size): Downloads the needed files during setup.

  • Full Installer (large size): Includes all files and works without internet.

  1. Click Download, then run the installer after the download finishes.

2025-11-04_19h17_20
  1. No thanks, just start my download.

2025-11-04_19h18_34

Step 2: Run the Installer

  1. Right-click the downloaded MySQL Installer and select Run as Administrator.

  2. If a message from User Account Control (UAC) appears, click Yes to allow the changes.

Step 3: Choose Setup Type

The installer gives you different setup choices:

  • Server Only: Installs only the MySQL Server.

  • Client Only: Installs only the client tools.

  • Full: Installs all MySQL products.

  • Custom: Lets you choose what to install.

  1. Select Full: Installs all MySQL products.

  2. Then Click Next

Note. For most servers, choose Server Only, or Developer Default if you need tools like MySQL Workbench.

Click Next to continue.

2025-11-04_19h26_00

Step 4: Check for Requirements

  • The installer will check if your system has the needed software (like Visual C++ Redistributable or .NET Framework).

  • If something is missing, it will download and install it automatically.

  1. The Visual C++ Redistributable package was not found on this server. Click Install to install the required component.

  2. When finished, click Next.

2025-11-04_19h26_57

Step 5: Begin Installation

  1. Click Execute to start installing MySQL.

2025-11-04_20h02_31
  1. The installer will download and install all selected parts.

  2. Wait until it finishes, then click Next.

2025-11-04_20h13_30

Step 6: Configure MySQL Server

  • After installation, the MySQL Configuration Wizard will open automatically.

Type and Networking

  • Choose Standalone MySQL Server / Classic MySQL Replication.

  • Keep the TCP/IP port as 3306 (default).

  • You can check Open Firewall port for network access if you want remote access.

  • Click Next.

2025-11-04_23h28_08

Authentication Method

  • Select Use Strong Password Encryption for Authentication (RECOMMENDED).

  • This gives better security and works with new clients.

  • Click Next.

2025-11-04_23h32_26

Accounts and Roles

  • Enter a strong root password.

  • You can also create extra user accounts if needed.

  • Click Next.

2025-11-04_23h34_16

Windows Service

  • Check Configure MySQL Server as a Windows Service.

  • Keep the default service name (usually MySQL80).

  • Select Start MySQL at System Startup.

  • Choose Run Windows Service as Standard System Account.

  • Click Next.

2025-11-04_23h37_34

Server File Permission

Click Execute to apply the settings.

When it finishes successfully, click Finish.

2025-11-04_23h39_19

Apply Configuration

  • Click Execute to apply all configuration settings.

  • Once completed successfully, click Finish.

2025-11-04_23h44_21

Step 7: Add MySQL to System PATH (Optional)

Press Windows + R, type:

sysdm.cpl

and press Enter.

Go to Advanced → Environment Variables.

2025-11-05_00h21_36

Under System variables, find Path, select it, and click Edit.

2025-11-05_00h22_26

Click New, then paste the path to the bin folder

C:\Program Files\MySQL\MySQL Server 8.0\bin
2025-11-05_00h23_17

Click OK on all windows to save the changes.

Now you can use MySQL commands anywhere in the terminal.

Step 8: Verify the Installation

  • After setup, MySQL 8.0 is ready to use.

Option A: Using Command Prompt

  1. Open Command Prompt.

  2. Type:

mysql -u root -p
  1. Enter your password.

  • If you see the MySQL prompt (mysql>), it means the installation worked

2025-11-04_23h56_53

Option B: Using MySQL Workbench

Open MySQL Workbench.

2025-11-05_00h08_58

Under MySQL Connections,

  • select Local Instance MySQL80,

  • then enter the password,

  • and click OK.

If it opens successfully, it means MySQL is working correctly.

2025-11-05_00h10_32

Step 9: Start and Stop MySQL Service

You can control MySQL using the Command Prompt:

Start MySQL

net start mysql80

Stop MySQL

net stop mysql80
2025-11-05_00h28_57

Step 10: Verify MySQL Version

To check the version, type:

mysql --version

Example output:

mysql  Ver 8.0.39 for Win64 on x86_64 (MySQL Community Server - GPL)
2025-11-05_00h30_02

Conclusion

Installing MySQL 8.0 on Windows Server is easy and reliable.
The MySQL Installer handles setup and dependencies automatically, making it simple even for new users.

After installing, you can:

  • Allow remote access

  • Secure the server using mysql_secure_installation

  • Set up backups and monitoring

MySQL 8.0 offers great speed, strong security, and wide support, making it a good choice for modern systems running on Windows Server.