Install MySQL on Windows Server

Install MySQL on Windows Server

You may imagine that only Linux users deal with MySQL more, but the fact is that as one of the most popular relational database servers, it is compatible with Windows Servers. In this article, you will learn How to Install MySQL on Windows Server and set it up. MySQL is a free and open-source database. It is fast, reliable, scalable, and simple to use. It was initially created to quickly handle big datasets and has long been utilized in extremely demanding production applications.

Undoubtedly, when buying Windows VPS, data should be one of your primary concerns. So, you need to consider a database to manage your information and allow users to store, update, and delete data. MySQL raises the standard for security with its Access Privilege System and User Account Management. Providing the software framework, MySQL makes data storage reliable. It also has an easy installation if you follow the required instructions correctly. What simplifies the MySQL setup process is the MySQL installer.

The MySQL Installer is a stand-alone program created to make the difficult process of installing and configuring MySQL software for Microsoft Windows a little bit simpler. Using this tool helps you configure MySQL while walking you through each step.

Prerequisites to Install MySQL

Before you jump into Install MySQL on Windows Server tutorial, ensure your PC meets the following requirements:

  • Windows computer system.
  • Administrator privileges on Windows server.
  • MySQL Installer requires .NET Framework 4.5.2
  • Visual C++.

Visual Guide To Setup MySQL on Windows Server

Let’s go through this tutorial and review all the required steps to Install MySQL on Windows Server. As we mentioned, you can use the MySQL Installer to control the process of installing and setting up MySQL on Windows Server.

Step 1. Download MySQL Installer

Follow the path below to get started:

  1. On your Windows server, download the MySQL Installer.
  2. Choose to download either the Web Community version or the Full MySQL package.
  • Web Version: Only the MySQL Installer and configuration files are present in the Web version. Later on, you can modify and add more MySQL products.
  • Full MySQL package: Every MySQL Windows product, including the MySQL Server, is included in the Full version.

MySQL Installer

  • You have the choice to create a MySQL Community account once you’ve decided on a version. At the bottom of the page, there is an option that says ” No thanks, just start my download “. If you are not interested, select this option to let the download process start.

Setup MySQL on Windows Server

  • You can run the MySQL Installer file from the download folder once the download is finished. Windows may need some time to set up the MySQL Installer and get ready for the installation and configuration process.

Step 2. Set Up MySQL Installer

Once you complete the previous step successfully, you will face a new window with the MySQL Installer setup. To do this, you need to choose the MySQL products to install on the host.

  • You have a variety of predefined settings to select from, or you can design your setup type.

Set Up MySQL Installer

In this guide, we choose ”Server only” mode. Check the differences between the modes you see in the above wizard.

  • Developer Default: Installs MySQL Server, Shell, Router, Workbench, MySQL for Visual Studio, MySQL Connectors (for.NET, Python, ODBC, Java, and C++), MySQL Documentation, and MySQL Samples and Examples, among other tools that support application development with MySQL.
  • Server only: installs only the MySQL server. The general availability (GA) or development release server that you chose while downloading MySQL Installer is installed using this configuration type. It employs the standard data and installation pathways.
  • Client only: It only installs the latest versions of MySQL connectors and apps. This setup type is comparable to Developer Default, with the exception that it excludes the MySQL server and any client applications that are usually provided with it, like MySQL or mysqladmin.
  • Full: Installs every MySQL product that is presently available.
  • Custom: You can filter and choose certain MySQL items from the MySQL Installer catalog using the custom setup type.

The system now strives to eliminate any potential contradictions. It may notify you that other items, such as the Microsoft Visual C++ 2019 Redistributable Package, must be installed in order for the process to continue. If your Windows Server has previously hosted a MySQL installation, you may also see the path installation discrepancies.

MySQL Installation on Windows Server

  • The MySQL Installer, fortunately, automatically fixes problems and installs the most recent binary-compatible version of any missing software. Now is the time to seriously begin the installation process.
  • To start the installation procedure, click Execute. Let’s continue and complete the process to Setup MySQL on Windows.

Step 3. Configure MySQL Server

After finishing the previous steps, you are ready to Configure MySQL Server on Windows:

  • On the Product Configuration, click Next to let the process begin.

Configure MySQL Server

  • Let’s see what is High Availability tab. The availability of the database is impacted by the first configuration parameter. To increase availability, you can choose whether to set up a Stand-alone MySQL Server or an InnoDB server cluster.
  • In this case, we went with the classic, single-server option.

MySQL Configuration

  • Several key aspects are defined in the Type and Networking section. You can select one of three server configuration types using the Config Type option. Development Computer, Server Computer, and Dedicated Computer specify whether the server is going to share the underlying machine with other programs or be fully dedicated to executing your MySQL database.
  • In this instance, we choose to create a dedicated MySQL server.

Type and Networking in MySQL configuration

  • The port that the MySQL server is listening on can also be specified in the Type and Networking tab. You can modify the port’s default configuration from 3306 to one that better suits your requirements. You can subsequently configure further logging options by selecting the Show Advanced and Logging Option checkbox.
  • Once you’ve decided which options best suit your needs, click Next.

MySQL server configuration type

  • On the Authentication Method tab, the suggested Strong Password Encryption and the Legacy Authentication Method are the two authentication methods available.
  • Choose the option that is advised: Use Strong Password Authentication. However, you will be able to reset MySQL root password on Windows later.

Authentication Method on MySQL Configuration

  • The password for your MySQL root user is now required on Accounts and Roles. For different users and purposes, you can also establish new roles. Once the installation is finished, credentials can be changed because this is just the initial configuration.

MySQL Installer Accounts and Roles tab

  • As a Windows Service, MySQL will start automatically whenever your Windows Server boots. Also, you can configure MySQL, manually to start it as an executable software.

MySQL Installer Windows Server tab

  • You can now configure MySQL log options if you have chosen the Show Advanced Logging option on the Type and Networking tab. The logging option allows you to set the log directories and choose the types of logs you want to activate.

MySQL Logging Options

  • The next tab, Advanced Options is also optional. There, you can set a unique server identifier and the type of case to be used for Table Names. Again, consider that these settings are only available if you have checked the Show Advanced Options box in the Type and Networking tab.
  • Now that you have successfully completed MySQL configuration on Windows Server, confirm for the MySQL Installer to apply it. On the screen, a list of the configuration steps is displayed. To make the configuration effective, click Execute.

Apply MySQL Configuration

  • Finally, viewing the below wizard means that the configuration process is complete. Click Next to continue the installation process. You are so close to completing Setup MySQL on Windows Server.

Complete MySQL Installation

  • Now, you can Copy Log to Clipboard. Click on it to copy the installation process log to the Windows Clipboard

Copy log mysql installation

  • That’s it! At this point, you just need to click Finish to complete the MySQL server installation on Windows. Setup MySQL on Windows is now finished. Stay with us to start and use MySQL on Windows Server.

How to Use MySQL on Windows Server

On your first try of starting MySQL Server on Windows, run the command below in the Windows Command Prompt.

"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld" --console

As you can see in the above command, the path is the default installation folder. So, if you have changed it during the installation, use your current folder that you have installed MySQL in it. Otherwise, the mysqld executable file would not launch successfully.

Now that you learned How to Start MySQL on Windows Server, be aware that you can use the following command to Stop MySQL.

"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqladmin" -u root shutdown

The shutdown command is executed by the mysqladmin utility, completely stopping the MySQL server.

Congratulations! Now you have installed MySQL on your Windows Server and learned how to set it up. The instructions in this guide help users to Install MySQL and set it up on Windows Server 2019. Linux users also need to do the necessary steps to Install MySQL on CentOS.


In this article, you learned How to Install MySQL on Windows Server. First, you got familiar with MySQL Installer which is a very user-friendly interface to learn how to install MySQL on Windows Server. With its simple installation and configuration, the MySQL Installer is great for people who need MySQL in a Windows environment.

After setting up MySQL Installer, you got ready to Configure MySQL Server. By following the steps explained in this article, navigating the setting process’s many available options becomes noticeably simpler. In the end, you reviewed the required commands to start and stop MySQL to be able to use it on Windows Server.

If you follow the above steps properly then you can smoothly Install MySQL on Windows Server without any errors but do not hesitate to contact us if you encounter any problems. Our technical support team will try their best to solve your problems.

Leave a Reply

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