MySQL installation and configuration method

MySQL installation and configuration method

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*

insert image description here

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

insert image description here

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

insert image description here
insert image description here

3. Select "MySQL Server 5.7.31" first, then click the blue "Advanced Options" below

insert image description here

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

insert image description here

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"

insert image description here

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"

insert image description here

8. After checking, click "Install"

insert image description here

9. After the installation is complete, click "Close"

insert image description here

10. When you see this check mark, it means that the environment is installed, just click "Next"

insert image description here

11. Click "Execute" directly

insert image description here

12. When this icon appears, it means the installation is successful, just click "Next"

insert image description here

13. Just click "Next"

insert image description here

14. Just click "Next"

insert image description here

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

insert image description here

16. The default port of MySQL is 3306, no need to modify, just click "Next"

insert image description here

17. Here you need to set the MySQL password, it doesn’t need to be too complicated, just click “Next” after setting

insert image description here

18. Just click "Next"

insert image description here

19. Click "Execute" directly to start the installation, and you need to wait for a while after clicking the installation

insert image description here

20. Click "Finish"

insert image description here

21. Click "Next", click "Finish", and the MySQL installation is complete

insert image description here

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)

insert image description here

23. The following interface appears, indicating that the installation has been successful

insert image description here

3. Configure environment variables

1. Find the installation path of MySQL

insert image description here

2. Right click on This PC and select "Properties"

insert image description here

3. Click "Advanced System Settings" first, then click "Environment Variables"

insert image description here

4. Select "Path" in "System Variables", click "Edit", click "New", add the installation path of MySQL, and then click "OK"

insert image description here

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

insert image description here

6. Type "mysql -u root -p" and press Enter

insert image description here

7. Enter the password, press the "Enter key (Enter key)", and the following interface will appear, indicating that the configuration has been successful

insert image description here

Guess you like

Origin blog.csdn.net/holyxp/article/details/132058918