Double-click the installation package mysql-installer-community-5.7.31.0.msi
Select custom installation "custom" and click next
“Developer Default” is the developer default
"Server only" Install only as a server
"Clientonly" Install only as a client
"Full" is a complete installation
"Custom" is a custom installation
Click on "MySQL Servers", "MySQL Server", "MySQL Servers 5.7", "MySQL Servers 5.7.31-64", and then click the green arrow to select the version we want to install.
Modify the installation path
Click execute to execute the installation
The installation is complete, click next to proceed to the next step.
Next, click next
Click next, next step
Click next, next step
set password
Click next
Click execute to execute the installation
Click finish to complete
Click next
Click finish
Check if the installation is successful
Search for mysql in the search bar and click on the first MySQL 5.7 Command Line Client
Enter the mysql password we set and press Enter. The following interface appears, indicating that the mysql installation is successful.
Configure environment variables
Search for advanced system settings in the search bar and click the first one
Click on environment variables
Find PATH under system variables and double-click
Click New, copy the installation path of mysql above, and then confirm
Windows+R, enter cmd, then enter mysql -u root -p, press Enter to enter the password, and the following interface appears, indicating that the environment variable configuration is successful. It