MySQL installation and configuration method
- 1. Download MySQL
- 2. Install MySQL
-
-
- 1. Select the setting type
- 2. Select products and features to install
- 3. Select "MySQL Server 5.7.31" first, then click the blue "Advanced Options" below
- 4. Customize the installation path and data storage path, click "OK" after the change is complete
- 5. Just click "OK"
- 6. After the changes are complete, click "Next"
- 7. Select "MySQL Server5.7.31" first, if there is no such environment in the computer, it will prompt to install the "Microsoft Visual C++ 2013" environment, click "Execute"
- 8. After checking, click "Install"
- 9. After the installation is complete, click "Close"
- 10. When you see this check mark, it means that the environment is installed, just click "Next"
- 11. Click "Execute" directly
- 12. When this icon appears, it means the installation is successful, just click "Next"
- 13. Just click "Next"
- 14. Just click "Next"
- 15. Select the installation type
- 16. The default port of MySQL is 3306, no need to modify, just click "Next"
- 17. Here you need to set the MySQL password, it doesn’t need to be too complicated, just click “Next” after setting
- 18. Just click "Next"
- 19. Click "Execute" directly to start the installation, and you need to wait for a while after clicking the installation
- 20. Click "Finish"
- 21. Click "Next", click "Finish", and the MySQL installation is complete
- 22. Search for mysql on the start interface, and click the first MySQL 5.7 Command Line Client
- 23. The following interface appears, indicating that the installation has been successful
-
- 3. Configure environment variables
-
-
- 1. Find the installation path of MySQL
- 2. Right click on This PC and select "Properties"
- 3. Click "Advanced System Settings" first, then click "Environment Variables"
- 4. Select "Path" in "System Variables", click "Edit", click "New", add the installation path of MySQL, and then click "OK"
- 5. Verify whether the environment variables are configured properly, press the "window+R" key to pop up the run box, enter "cmd" to enter the window command line
- 6. Type "mysql -u root -p" and press Enter
- 7. Enter the password, press the "Enter key (Enter key)", and the following interface will appear, indicating that the configuration has been successful
-
Disclaimer: Do not use the relevant technologies in this article to engage in illegal testing. Any direct or indirect consequences and losses caused by the dissemination and use of the information or tools provided in this article shall be borne by the user himself. Adverse consequences have nothing to do with the article author. This article is for educational purposes only.
1. Download MySQL
Mysql official website download address https://downloads.mysql.com/archives/installer/
1. Select the version you want to install and click Download
This article chooses * 5.7.31 version*
2. Install MySQL
1. Select the setting type
Double-click to run mysql-installer-community-5.7.31.0.msi, the choice here is custom installation, so directly select "Custom" and click "Next"
"Developer Default" is the developer's default
"Server only" is only installed as a server
"Client only" is installed only as a client
"Full" is a full installation
"Custom" is a custom installation
2. Select products and features to install
Click "MySQL Servers", "MySQL Servers", "MySQL Servers 5.7", "MySQL Servers 5.7.31 -64" in turn, and then click the green arrow to migrate the selected version to the right check box
Note: The 64-bit system is selected here
3. Select "MySQL Server 5.7.31" first, then click the blue "Advanced Options" below
4. Customize the installation path and data storage path, click "OK" after the change is complete
Note: Although there is nothing wrong with installing on the C drive, I personally suggest not to install it on the C drive. I installed it on the C drive
5. Just click "OK"
Note: choose the path created by yourself, the program prompts that the path already exists, click OK to continue
6. After the changes are complete, click "Next"
7. Select "MySQL Server5.7.31" first, if there is no such environment in the computer, it will prompt to install the "Microsoft Visual C++ 2013" environment, click "Execute"
8. After checking, click "Install"
9. After the installation is complete, click "Close"
10. When you see this check mark, it means that the environment is installed, just click "Next"
11. Click "Execute" directly
12. When this icon appears, it means the installation is successful, just click "Next"
13. Just click "Next"
14. Just click "Next"
15. Select the installation type
For personal study and research, you can choose "Development Computer". Here I choose "Development Computer"
Development Computer is suitable for personal development and learning.
Server Computer is mainly used for FTP, email, web servers, etc.
Dedicated Computer is only used as MySQL server
16. The default port of MySQL is 3306, no need to modify, just click "Next"
17. Here you need to set the MySQL password, it doesn’t need to be too complicated, just click “Next” after setting
18. Just click "Next"
19. Click "Execute" directly to start the installation, and you need to wait for a while after clicking the installation
20. Click "Finish"
21. Click "Next", click "Finish", and the MySQL installation is complete
22. Search for mysql on the start interface, and click the first MySQL 5.7 Command Line Client
Enter the MySQL password you just set, and press Enter (Enter)