MySQL 8.0.21.0 Community Edition Installation Tutorial (Detailed Illustrations)

MySQL 8.0.21.0 Community Edition Installation Tutorial (Detailed Illustrations)

1. Download MySQL

Log in to the MySQL official website and download the MSI Installer:

insert image description here

Click "Dnownload"

insert image description here

Click “No thanks, just start my download.”

2. Install MySQL

Step 1: Select the installation type

insert image description here

Choose one of the installation types based on your needs:
Developer Default Developer default installation
Server only Install only the server (recommended)
Client only Install only the client
Full Install everything
Custom installation (recommended)
Click “Next”

Step 2: Select the products and content to be installed

insert image description here

All product contents are listed in “Available Products”;
"Products/Features To Be Installed" is the selected installation content;
Click the middle arrow to add or remove items to be installed.
Two contents are selected here: the server "MySQL Server 8.0.0.21" and the database visualization interface "MySQL Workbench 8.0.21". If you only need the server, select "Server only" in Step 1.

Click “Next”

Step 3: Execute the installation

insert image description here

Click "Execute" and wait for the installation to complete

insert image description here

After the installation is complete, click "Next"

Step 4: Configure MySQL

insert image description here

Click "Next" to configure MySQL

insert image description here

Select a data storage engine.
After selecting the default "Standalone MySQL Server/Classic MySQL Replication" storage engine.
"Innodb Cluster" is a cluster storage engine composed of several different MySQL products and technologies. At least three MySQL services must be installed.

Select the configuration type and database connection method.

insert image description here

Select "Development Computer" for the configuration type; leave the connection method as default, and remember the "Port" number (3306 by default, which can be modified if a conflict occurs).

Select an authentication method

insert image description here

The first "Use Strong Password Encryption for Authentication" password encryption authentication is more secure;
The second "Use Legacy Authentication Method" is compatible with MySQL 5.x version and has good compatibility.

Set account password

insert image description here

Enter the Root password. This password is very important and you will use it frequently in the future. Write it down in a notebook!

Configure Windows Service and configure MySQL Server as Windows Service.

insert image description here

You can change the "Windows Service Name", the default is "MySQL80"; choose whether to start automatically at boot, etc.

Apply configuration.

insert image description here

Click "Execute" and wait for completion.

insert image description here

Complete the configuration. Click “Finish”

insert image description here

Configure other products. Click “Next”

The only installation content selected in Step 2 that needs to be configured is MySQL Server, so all configurations are now complete.

Step 5: Installation Complete

insert image description here

Click "Finish" to complete the installation

3. Configure environment variables

When you install MySQL for the first time, the default installation path is usually "C:\ProgramFiles\MySQL\MySQL Server 8.0", and the default data storage path is "C:\ProgramData\MySQL\MySQL Server 8.0" (ProgramData is a hidden folder)

After finding the MySQL installation path, start configuring environment variables.

Step 1: Right-click "This PC", select "Properties", select "Advanced System Settings", and select "Environment Variables"

insert image description here
insert image description here

Step 2: Double-click "Path" in the system variables

insert image description here
insert image description here

If "C:\Program Files\MySQL\MySQL Server 8.0\bin" already exists, it means that the installer has automatically configured the environment variables;
If "C:\Program Files\MySQL\MySQL Server 8.0\bin" does not exist, you need to add environment variables manually. Click New and copy and paste "C:\Program Files\MySQL\MySQL Server 8.0\bin" into it.

4. Start MySQL service

Method 1:
Right-click "This Computer", select "Manage", select "Services", find the Windows Service Name: MySQL80 in Step 4, Step 6 when configuring MySQL earlier, right-click "Start"

insert image description here

Method 2:
Run CMD as an administrator and enter "net start MySQL80"

insert image description here

5. Modify the MySQL data storage path

MySQL saves data to the C drive by default. If the storage space of the C drive is limited, it is recommended to save the data to other drives.
Step 1: Shut down the MySQL service

Step 2: Create a new data storage path <br /> In other disks with sufficient space, create folders of different levels according to the following addresses (here we take disk G as an example), such as "G:\ProgramData\MySQL\MySQL Server 8.0"

Step 3: Modify the configuration file my.ini

Open with Notepad and modify "C:\ProgramData\MySQL\MySQL Server 8.0\my.ini"

insert image description here

Step 4: Copy the Data folder <br /> Copy the Data folder (do not delete) in the original "C:/ProgramData/MySQL/MySQL Server 8.0" path to "G:/ProgramData/MySQL/MySQL Server 8.0".

Summarize

This is the end of this article about the detailed installation tutorial of MySQL 8.0.21.0 Community Edition. For more relevant MySQL 8.0.21.0 Community Edition installation content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • MySQL 8.0.21 installation tutorial under Windows system (illustration and text)
  • MySQL Installer 8.0.21 installation tutorial with pictures and text
  • MySQL 8.0.21 installation and configuration method graphic tutorial
  • MySQL 8.0.21 installation steps and problem solutions

<<:  How to set process.env.NODE_ENV production environment mode

>>:  Alibaba Cloud OSS access rights configuration (RAM permission control) implementation

Recommend

MySql 5.7.20 installation and configuration of data and my.ini files

1. First download from the official website of My...

CSS flex several multi-column layout

Basic three-column layout .container{ display: fl...

Installation method of mysql-8.0.17-winx64 under windows 10

1. Download from the official website and unzip h...

Introduction to fork in multithreading under Linux

Table of contents Question: Case (1) fork before ...

Windows 10 + mysql 8.0.11 zip installation tutorial detailed

Prepare: MySQL 8.0 Windows zip package download a...

The difference between br and br/ in HTML

answer from stackflow: Simply <br> is suffic...

The correct way to use Homebrew in Linux

Many people use Linux Homebrew. Here are three ti...

Detailed explanation of the calculation method of flex-grow and flex-shrink in flex layout

Flex(彈性布局) in CSS can flexibly control the layout...

Eight examples of how Vue implements component communication

Table of contents 1. Props parent component ---&g...

MySQL common backup commands and shell backup scripts sharing

To back up multiple databases, you can use the fo...

Tips for viewing text in Linux (super practical!)

Preface In daily development, we often need to pe...

MySQL sorting Chinese details and examples

Detailed explanation of MySQL sorting Chinese cha...

How Database SQL SELECT Queries Work

As Web developers, although we are not profession...

Differences between this keyword in NodeJS and browsers

Preface Anyone who has learned JavaScript must be...