SYSTEM ADMIN BOOK
  • Hardware/Physical Machines
    • Physical Networking
      • Patch Panel
    • Hardware Devices
    • PC Build
    • RAID Configs
  • System Configuration
    • Windows
      • OneDrive for Business, Map as Network Drive in Windows
      • PDF Printer
      • Reset Windows Password
    • Linux
    • Mac
      • Factory Reset Mac Mini
      • Install FortiClient VPN
      • Remove FortiClient VPN for Macs
      • Setting Microsoft Teams Notifications in MacOS
      • Download and Install Whatsapp
  • Windows Server
    • Troubleshooting
      • 100% Disk Usage Issue
      • Maximum Path Length Limitation
    • Basic Configurations
      • Change Hostname
      • Change Default RDP Port
      • Create a User
      • Add user to Administrator group
      • Add user to Remote Desktop Users group
      • Allow log on locally - security policy setting
      • Allow Multiple Remote Desktop Connections
      • Enable Insure Guest Authentication
      • Shrink Partition
      • Extend Partition
    • FTP Server
      • Install FTP Server (IIS)
      • Create User Group
      • Add FTP Site (IIS)
      • User Isolation
      • Allow Firewall
      • FTP Client (FileZilla)
      • FTP Server (FileZilla)
      • Configure Passive Mode in FileZilla Server
      • Configuring Windows Firewall for FileZilla Server
      • FileZilla: Password reset
      • Generate a New Self-Signed Certificate
    • Group Policy
      • Block Access to the Control Panel for All Users
      • Create a Logon Banner (Legal Notice)
      • Enable / Disable Copy-Paste Policy
      • Disable Shutdown, Restart Options
      • Disable Multiple Session for Single User
      • Disable Automatic Lock Screen in Windows Server
    • Services
      • NSSM - the Non-Sucking Service Manager
      • Node-windows Library
    • Task Scheduler
      • Automate Program Execution
      • Restart Windows Server Daily
    • Auditing and Diagnostincs
      • Enabling the System Event Audit Log
      • Audit RDP Port Change Event
      • Check the read/write speed of your hard drive
      • Clear temp file and .trc file
    • Event Viewer
      • Restart / Shutdown Event
    • Active Directory
  • Control Panels
    • Plesk
      • Set Hard Quota on disk space for subscription(s)
      • Changing MX, A, and CNAME Records
      • Host Node.js Application
      • Add FTP account
      • Remove FTP account
      • Download a folder using Plesk File Manager
      • Install WordPress on domain using WP Toolkit
      • Change the name of a Subscription system user
      • Exporting and Importing Database Dumps
    • OVI Panel
      • DNS Zone Editor
    • SolidCP
      • Add a MS SQL database in SolidCP
    • cPanel
  • Virtualization
    • Proxmox VE
      • Introduction
      • Download Proxmox ISO
      • Prepare Installation Media
      • Launch Proxmox Installer
      • Create a VM
  • Web Servers
    • IIS
      • Install IIS
      • Configure Default Site
      • Application Pool
      • Installing PHP
      • Deploy a PHP Application
      • Deploying a Laravel app on Windows using IIS
      • Update PHP Version in IIS
      • Host a Node.js /w Next.js Application
    • JBoss
  • VPNs and Proxy Servers
    • Reverse Proxy
      • IIS - Node.js Application
  • Database Servers
    • MS SQL
      • Download and Install
      • Install SSMS
      • Uninstall an Instance of SQL Server
      • Enable SA Account
      • Change SA Account Password
      • Enable Network Access to SQL Express
      • Create and configure a user in MSSQL
      • Clear SQL Server Cache
      • Setting Infinite Timeout in SQL Server Contexts
      • Take SQL Server Database Offline
      • Memory configuration
    • MySQL
      • Install and Configure MySQL
  • Web Dev Stacks
    • MERN (w/ Next)
      • Build and Run Node.js Project with Next.js
  • IT Ticketing Systems
    • Jira Ticketing System
  • Linux Servers
  • AWS Environment
  • Azure Environment
  • Backup and Security
    • SSL Certificates
      • Types of SSL Certificates
      • IIS 10: Create CSR and Install SSL Certificate
      • IIS 7: Generate CSR for Wildcard SSL
      • IIS: Generate CSR for Multi-Domain SSL
      • OpenSSL: Generate CSR
      • IIS 10: How to Install and Configure Your SSL Certificate on Windows Server
      • IIS: Export Pfx using MMC
      • IIS: Import Pfx using MMC
      • IIS: Export Pfx using IIS Manager
      • IIS: Import Pfx using IIS Manager
      • cPanel: Export PFX
      • Godaddy-CPanel: Generate a CSR
      • Godaddy-CPanel: Install SSL Certificate
      • cPanel: Generate CSR
      • cPanel: Install SSL Certificate
      • cPanel: Install Let's Encrypt SSL
      • Plesk: Generate CSR
      • Plesk: Let's Encrypt SSL Installation
      • Plesk: Installing the SSL certificate
      • Plesk: Export Public & Private Key
      • Win-ACME Let's Encrypt SSL
      • Certbot - Install SSL
      • Export Leaf, Root, and Intermediate Files
      • XAMPP - Let's Encrypt SSL Installation
      • JBoss Web Server: CSR Generation
      • JBoss: Install SSL Certificate
    • Backup
      • Database
        • MS SQL DB Backup
        • MS SQL Restore Backup
    • Microsoft Defender for Endpoint
      • Introduction & Licenses
    • Microsoft Intune - Endpoint Management
      • Product Introduction
      • Intune Policies for MacOS
      • Enroll your macOS device using the Company Portal app
    • Vulnerability Scanning
      • OpenVAS Quick Guide
      • Nessus Quick Guide
    • Acronis
      • Download and Install the Acronis Cyber Protection Agent
      • Performing a file-level backup
      • Creating a disk-level backup
      • Performing a file-level recovery
      • Enabling Active Protection and Vulnerability Assessment
  • Email and Office 365
    • Troubleshooting
      • Run a message trace in the Exchange admin center
      • Not receiving email
      • Office 365 Apps Activation Error
      • Gmail Issue: Clearing Cache and Cookies
      • Excel worksheet, right click insert not functioning
      • Microsoft 365 Apps activation error: “Your organization has disabled this device”
    • Hybrid Mail Setup
      • Set Up Connectors Between Microsoft 365 and SmarterMail
    • Email Authentication
      • Protocols
    • Mail Clients
      • Outlook
        • Maximum number of Exchange accounts in an Outlook profile
        • Enable automatic forwarding in new Outlook
        • Add Email Signature
        • Create Email Singature
        • Gmail Account Login in Outlook
        • Enable desktop notifications for Outlook on the Web (OWA) in Windows
        • Move Mails to Specific Folders
      • Apple Mail
        • Add email accounts in Mail on Mac
        • Add Mail Signatures
      • Gmail
        • Mail Forwarding to Another Account
        • Set Up an Auto-Reply (Vacation Responder) in Gmail
    • Office 365
      • Intro & Subscriptions
      • How to Create a Trial Account
      • How to Access the Office 365 Admin Center
      • Creating a Tenant
      • Create Users
      • Add several users at the same time to Microsoft 365
      • Creating & Managing Roles
      • Add a Domain
      • Manage MFA
      • Let users reset their own passwords
      • Assign Global Admin Roles
      • Create APP Password
      • Change a user name and email address
      • Reset MFA for Microsoft 365 User
      • Configure email forwarding
      • Add email aliases to a user
      • Change Username or Email Address
      • Export Mailbox to PST From Office 365
      • Import PST to Exchange Online (Microsoft O365)
      • Enable archive mailboxes for Microsoft 365
      • Grant Export Permission in M365 Compliance Center
      • Generate Transfer Token
    • Google Workspace
      • Intro & Plans
      • Create your Google Workspace trial account
      • Review your DNS records
      • Adding Users
      • Create organizational units
      • Restrict access to a Google Workspace service
      • Edit user attributes
      • Manage user accounts
      • Suspend a User
      • Generate a Transfer Token
      • Reduce Licenses in Google Workspace
      • Auto-forward From Google Workspace Using Routing
      • Recovering administrator access to your account
    • MailEnable
    • SmarterMail
      • SmarterMail Installation
      • SmarterMail Server Setup
      • Installation and Configuration (Practical)
      • Enable / Disable Domain in SmarterMail
      • Enable / Disable MFA for User Accounts
      • Create an Administrator User in SmarterMail
    • Microsoft Teams
      • Guest Access vs. External Access
      • Adding Guests To Microsoft Teams Team
      • Teams Chat DIfferent Domain: Enable External Access
      • Setup Teams Time Zone and Work Hours
      • Add Contact Numbers in Profile Page
    • Microsoft Defender for Office 365
      • Remove blocked users from the Restricted entities page
    • Microsoft Purview
      • Create a Retention Policy for Archiving in M365
  • DevOps
  • Firewalls and Access Points
    • Windows Firewall
      • Allow Ports on Windows Firewall
    • Sophos Firewall
      • Set up a new firewall with Sophos Central
      • Enable Sophos Central management of Sophos Firewall
  • Networking
    • Troubleshooting
    • Cisco Router Config
    • Cisco Switch Config
      • Basic Data and Voice VLAN Setup Homelab
  • Migration
    • Drive Migration
      • Google Drive to One Drive
      • One Drive to One Drive [SharePoint Migration Tool]
      • Migrate Google files to Microsoft 365 for business
    • Mail Migration
      • Google Workspace to Office 365 (Manual Method)
      • Google Workspace to Office 365 (Automatic Method)
      • IMAP to Office 365
      • Migration Using PST File Method
      • Office 365 to Google Workspace Migration
      • G-Suite to G-Suite Migration
    • VM Migration
    • Website Migration
      • Migrating IIS Sites Using Web Deploy
      • Plesk to Plesk Migration
    • Database Migration
  • Monitoring
    • Prometheus
      • Monitoring Windows Servers Using Prometheus
    • Grafana
      • Visualize Data in Grafana
    • Loki
  • Data Center
    • HPE ProLiant ILO Configuration
  • Other Technologies
    • Some R&Ds
      • Active vs. Passive Mode in FTP
      • IIS Recycling and Virtual Memory Limit
      • IIS Application Pool
Powered by GitBook
On this page
  • Prerequisites
  • How to Install MySQL on Windows
  • Step 1: Download MySQL MSI Installer for Windows
  • Step 2: Install MySQL Server on Windows
  • Step 3: Configure MySQL Server on Windows
  • Step 4: Verify MySQL Installation on Windows
  • REFERENCES

Was this helpful?

  1. Database Servers
  2. MySQL

Install and Configure MySQL

PreviousMySQLNextWeb Dev Stacks

Last updated 4 hours ago

Was this helpful?

MySQL is a well-established relational database management system (RDBMS). It is fully compatible with Windows operating systems, including desktop and server editions.

Prerequisites

  • Windows operating system.

  • Administrator privileges on the Windows server.

How to Install MySQL on Windows

Instead of downloading and installing MySQL manually, you can use the MSI Installer to streamline the process.

Step 1: Download MySQL MSI Installer for Windows

To download a free Community MySQL Server for Windows:

1. Connect to your Windows server and navigate to the official MySQL downloads page.

2. Use the dropdown menu to select the latest MySQL Server version. At the time of writing, the latest stable MySQL Community Server version is 8.4.3 LTS.

3. Download the MSI Installer.

4. If you do not want to sign up for an Oracle Web Account, click No thanks, just start my download.

Once the download is complete, run the MySQL Installer file from the download folder. It can take a few moments while Windows prepares the installation and configuration process.


Step 2: Install MySQL Server on Windows

To install MySQL Server on Windows:

1. Click Next to start the MySQL installation process in the Setup Wizard.

2. Review and accept the License Agreement terms and click Next.

3. Before proceeding with the installation, define which features to install by selecting a Setup Type. Select one of the predefined options or create your custom setup:

  • Typical. Deploy an instance of the MySQL Server and skip most other features. Typically used for deploying servers in a production environment.

  • Custom. Manually select the elements to be installed and modify default settings.

  • Complete. Install MySQL Server and all available features, including sample databases and examples. Provides a complete environment for development and server management.

For this tutorial, we selected the Typical setup type. After making your selection, click Next to proceed.

Note: The setups are tailored for specific use cases, primarily to streamline the installation. You can always customize the preconfigured setups post-installation.

4. Click Install to initiate the MySQL Server installation.

5. Confirm the Run MySQL Configurator option is checked and click Finish.

This launches the MySQL Configurator app to assist you in configuring MySQL Server 8.4.3.


Step 3: Configure MySQL Server on Windows

The following section explains how to set up MySQL Server on Windows using the MySQL Configurator.

Note: The MySQL Configurator is part of the MySQL bundle and does not need to be installed separately. It automates the MySQL Server setup, provides a consistent interface across all supported Windows platforms, and resolves software dependencies.

The tool starts automatically if the Run MySQL Configurator option is selected during installation. If it does not launch, open the tool manually from the Windows Start menu.

Once the tool is launched, click Next to begin the configuration process.

Data Directory

Select the directory where MySQL Server will store its data.

Use the default path, C:\ProgramData\MySQL\MySQL Server 8.4\, or specify a custom directory and click Next.

Note: To avoid path conflicts during the installation, remove previous MySQL versions from the system or select a new installation directory.

Type and Networking

In the Type and Networking section:

1. Choose one of three server configuration types in the Config Type dropdown:

  • Development Computer. Select this option if the Windows server is a testing and development environment where MySQL needs to share resources with other applications.

  • Server Computer. This configuration balances resource sharing and server performance. The Windows server can host multiple applications, including MySQL, as part of a multi-purpose server setup.

  • Dedicated Computer. MySQL utilizes all system resources with minimal resource sharing. This option is best used for dedicated MySQL servers and is optimized for production environments.

2. (Optional) Define the MySQL server port. The default port is 3306, but it can be changed if, for example, another application already uses this port number.

3. Ensure the Open Windows Firewall ports for network access option is checked to allow MySQL traffic through the firewall.

4. (Optional) Check the Show Advanced and Logging Option box to configure additional logging options later.

5. Click Next to continue.

Accounts and Roles

The Accounts and Roles section allows you to configure MySQL user accounts. This is only an initial setup, and you can change the MySQL root password after the installation.

1. Enter and confirm a strong password for the MySQL root user.

2. (Optional) Click Add User to create additional roles and set privileges for various users and purposes.

3. Select Next to continue with the server configuration.

Windows Service

A Windows Service is registered with the operating system and starts automatically when Windows boots. Configuring MySQL Server as a Windows Service ensures it runs continuously in the background and is available for applications.

Confirm the Configure MySQL Server as a Windows Service and Start the MySQL Server as System Startup options are checked, then click Next to proceed.

Server File Permissions

File permissions determine how users access and interact with MySQL server files. To define file permissions for previously created MySQL users, you can:

  • Allow the MySQL Installer to configure user permissions automatically.

  • Manually set specific file access levels for each user (recommended).

  • Modify the server permissions manually after the installation is complete.

The recommended option is the safe choice for most setups. When ready, click Next to continue.

Logging Options (Optional)

If you have selected the Show Advanced Logging option in the Type and Networking tab, you can set up MySQL log preferences.

Select the types of logs you want to activate and define the log directories for:

  • Error Log. Logs critical errors and warnings encountered by the MySQL server.

  • General Log. Tracks server activity and connections.

  • Slow Query Log. Identifies queries that take longer than expected to execute.

  • Bin Log. Records all changes to the database data.

Click Next to proceed to the Advanced Options section.

Advanced Options (Optional)

The Advanced Options are available only if you have checked Show Advanced Options in the Type and Networking tab.

The Server ID setting allows you to set a unique server identifier, which is useful for distinguishing servers in multi-server environments.

You can also configure Table Names Case sensitivity. In Windows, MySQL treats table names as lowercase (case-insensitive) by default. Uppercase names are rarely used but can be set to align with specific cross-platform requirements.

Click Next to finalize the MySQL Server configuration.

Sample Databases

The Sample Databases tab allows you to create predefined sample databases and example code, which are useful for learning, testing, and development purposes.

Select the Sakila or World database (or both) and click Next.

Apply Server Configuration

To complete the MySQL Server configuration:

1. Review the steps and click Execute to apply the configuration.

2. The system informs you the MySQL Server configuration process is complete and displays a summary of the completed configuration steps. Select Next to continue the installation process.

3. (Optional) Copy the installation process log to the Windows Clipboard.

4. Click Finish to complete the MySQL server installation on Windows.


Step 4: Verify MySQL Installation on Windows

f you configured MySQL as a Windows service, it starts automatically. To verify that the server is running:

1. Open the MySQL Command Line Client from the Windows Start menu.

2. Enter the root password created during setup to access the MySQL server.

3. Use the following command to list the current databases:

SHOW DATABASES;

The output shows that the example databases, Sakila and World, were successfully created during the setup process.

Restart MySQL Service on Windows

If MySQL does not start automatically on boot:

1. Type Services in the Start menu and select Run as administrator.

2. Locate the MySQL service in the list. In this example, the service is listed as MySQL84.

3. Select the service and click Start or Restart, depending on its status.

4. To ensure the MySQL service always starts on boot, right-click the service and select Properties.

5. In the Startup Type dropdown, select Automatic and click OK to save the changes.

The changes take effect immediately.


REFERENCES

  • https://phoenixnap.com/kb/install-mysql-on-windows

Accept MySQL License Agreement.
Select MySQL Server setup type on Windows.
Start MySQL Setup Wizard.
Start MySQL MSI Installer download.
Download MSI Installer form official MySQL page.
Install the MySQL Server on Windows.
Complete MySQL Server installation and launch MySQL Configurator.
Select MySQL Data Directory path.
Start MySQL Server configuration on Windows.
Set MySQL port number in Windows.
Set MySQL Server file permissions during Windows installation.
Set MySQL accounts and roles on Windows server.
Enable MySQL logging in Windows.
Configure MySQL as Windows Service.
Advanced options during MySQL installation on Windows.
Review and execute MySQL configuration in Windows.
Add sample databases when installing MySQL on Windows.
Finish MySQL setup on Windows server.
MySQL logging option during installation on Windows.
Apply MySQL configuration in Windows.
Enter MySQL root password to connect to server.
Run Windows Services app as administrator.
Restart MySQL Service in Windows.
Open the MySQL client form Windows start menu.
Show list of MySQL databases.
Set MySQL to boot automatically on Windows.