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.
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.
(2) Select 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.
(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.安装路径
数据存储路径
(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.
(8) Modify the installation paths of these four components, and click "Next".
(9) Click "Execute" to install the components.
(10) After installing the components, click "Next", click "Next", and 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.
(12) ROOT 用户
Set the universal 123456 password.
(13) 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".
(15) As usual, click "Next", click "Next", and 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.
(2) Find "Advanced System Settings" and click it.
(3) Click "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".变量值
(5) Double-click the " Path " system variable, click " New ", add the environment variable %MYSQL_HOME%\bin , and finally remember to click "OK".
(6) You need to click "OK", otherwise the configuration will not 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.
(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.