mysql 8.0.32 windows installation

 Reprinted from the following link

(10 messages) The latest MySQL 8.0.32 installation and deployment on Win10 (details)

I. Introduction

 
  The official MySQL Windows version download address: MySQL :: Download MySQL Installer
 
   This tutorial provides detailed guidance on how to install and deploy the latest version of MySQL-8.0.32 under the Win10 system .
 
  [MySQL series installation and deployment tutorial]

Docker install the latest version of MySQL5.7 (mysql-5.7.40) tutorial (refer to Docker Hub)
 
write the best Docker install the latest version of MySQL8 (mysql-8.0.31) tutorial (refer to Docker Hub and MySQL official documents)
 
latest MySQL-5.7 .40 Install and deploy on the cloud server Centos7.9
 
Download and install the official sample database (Employees) provided by MySQL

 
  本文由 CSDN@大白有点菜 原创,如需转载,请说明出处。如果觉得文章还不错,可以 点赞+收藏+关注 ,你们的肯定是我创作优质博客的最大的动力。
 

2. Installation and deployment

1. Download  mysql-installer-community-8.0.32.0.msi the installation package according to the steps, and double-click to install it directly.

 
Download MySQL-8.0.32 installation package 1
 
Download MySQL-8.0.32 installation package 2
 
Download MySQL-8.0.32 installation package 3
 
Download MySQL-8.0.32 installation package 4
 

2. Install MySQL-8.0.32 process steps.

 
(1) The default is to check  the "Developer Default" option, remove it, and the "Custom" option  should be checked here   , so that we can customize the installation path and selectively install components.
 
The default is to check the "Developer Default" option, remove it, and the "Custom" option should be checked here, so that we can customize the installation path and install only the components we want to install
 
(2) Select  the "MySQL Server 8.0.32-X64"  component.
 
Install the "MySQL Server 8.0.32 - X64" component

 
(3) Select  "MySQL Server 8.0.32 - X64"  , and click  "Advanced Options"  to set the installation path of the components. It is recommended not to install to the C drive.
 
Select "MySQL Server 8.0.32 - X64", click "Advanced Options" to set the installation path of the components.
 
(4) Modify   the sum   of  "MySQL Server 8.0.32 - X64" , it is recommended to directly modify the installation path instead of selecting the path, and finally click "OK". I installed MySQL-8.0.32 under the Win10 virtual machine. There is only one C drive, and it can only be installed to C:\Develop. (5) Select  the "MySQL Shell 8.0.32 - X64"  and  "MySQL Router 8.0.32 - X64"  components. (6) Similarly, modify   the installation path of the "MySQL Shell 8.0.32 - X64"  and  "MySQL Router 8.0.32 - X64" components.安装路径数据存储路径
 
Modify the installation path and data storage path of "MySQL Server 8.0.32 - X64".
 

 
Select the "MySQL Shell 8.0.32 - X64" and "MySQL Router 8.0.32 - X64" components.
 

 
Modify the installation path of the "MySQL Shell 8.0.32 - X64" component.

 
Modify the installation path of the "MySQL Router 8.0.32 - X64" component.

 
(7) Finally, you only need to select another component  "Connector/ODBC 8.0.32 - X64"  , and other components do not need to be installed. Remember to modify the installation path as well.
 
Finally, just select another component "Connector/ODBC 8.0.32 - X64".
 
Modify the installation path of the component "Connector/ODBC 8.0.32 - X64".

 
(8) Modify the installation paths of these four components, and click "Next".
 
Modify the installation paths of these four components, and click "Next".

 
(9) Click "Execute" to install the components.
 
Click "Execute" to install the components

 
(10) After installing the components, click "Next", click "Next", and then click "Next".
 
After installing the components, click "Next".

 
Click "Next".

 
Then click "Next".

 
(11) At this point, it is very important! 选择第二种认证方式, if it is the first one by default, using third-party tools such as Navicat may not be able to connect to the MySQL database.
 
Choose the second authentication method, if it is the default first one, using third-party tools such as Navicat may not be able to connect to MySQL
 
(12) ROOT 用户 Set the universal  123456  password.
 
The ROOT user sets a universal 123456 password.

 
(13) Add a user (Add User), set the user name and password, and still set the universal 123456 password.
 
Add a user (Add User), set the user name and password, and still set the universal 123456 password.
 
(14) After setting the ROOT user password and adding users, click "Next".
 
After setting the ROOT user password and adding users, click "Next".
 
(15) As usual, click "Next", click "Next", and finally click "Finish".
 
Click "Next"

 
Click "Next"

 
Finally click "Finish"

3. Set the global path, otherwise the mysql command cannot be used directly in the CMD window

 
(1) Right-click "This PC" and select "Properties" to open the "Settings" panel.
 
Properties of this computer

 
(2) Find "Advanced System Settings" and click it.
 
Find "Advanced system settings" and click

 
(3) Click "Environment Variables".
 
Click on "Environment Variables"

 
(4) Configure the "MYSQL_HOME" system variable . Click " 新建", enter MYSQL_HOME变量名 in " "   , paste  the absolute path of MySQL Server 8.0.32 installation in " "  , remember to click "OK".变量值
 
Configure the "MYSQL_HOME" system variable

 
(5) Double-click the " Path " system variable, click " New ", add the environment variable  %MYSQL_HOME%\bin  , and finally remember to click "OK".
 
Add environment variable %MYSQL_HOME%\bin to Path system variable
 
(6) You need to click "OK", otherwise the configuration will not take effect.
 
Click OK for the configuration to take effect
 

6. Verify MySQL installation

 
(1) Press the key combination  Win + R  to open the run box , enter the command  cmd  and press Enter.
 
Open the run box and type cmd

 
(2) Enter  the mysql -uroot -p  command and press Enter, see the prompt "Enter password", enter the password 123456, and you can connect to the MySQL Server normally.
 
Enter the mysql -uroot -p command and press Enter, see the prompt "Enter password", enter the password 123456, and you can connect to the MySQL Server normally.
 

Guess you like

Origin blog.csdn.net/qq_53368181/article/details/132017644