Mysql (download, installation, environment configuration detailed graphics)

Tip: Before installing, you need to confirm which version of mysql you need to avoid wasting time.

1. Mysql download

Official website download
https://www.mysql.com/
Baidu cloud disk download
Link: https://pan.baidu.com/s/1ef5ZbxiXA9U19V86JDRQeg
Extraction code: rpkc

Official website download tutorial
1. First open https://www.mysql.com/, click DOWNLOADS.

insert image description here

2. Select MySQL Community (GPL) Downloads.

insert image description here
3. Select MySQL Community Server community service to download, or directly select MySQL Installer for Windows to download, it is recommended to choose the first one.
insert image description here
insert image description here

4. Here you can select the .MSI file or directly select the .ZIP file to download. Bloggers use the latest version to install through .MSI.

MySQL binary distribution (.msi installation file) and free installation version (.zip archive). The .MSI version provides a graphical interface installation wizard process, and the .ZIP version needs to be installed and set up through instructions after downloading, which will be a little troublesome.

insert image description here

5. You can choose the current version or choose other versions through Archives and then download it finally.

insert image description here
insert image description here

6. After the download is complete, you can get the .msi file, and perform the following installation operations.

insert image description here

Two, Mysql installation

1. Double-click the downloaded .msi file, if user account control is required, select Yes.

insert image description here

2. Select No here, no upgrade is required for the time being.

insert image description here

3. Select the type of installation, generally the default is fine, and then click Next.

insert image description here

4. Whether the installation satisfies the conditions, and the unsatisfied conditions will be displayed. After selecting Next, select yes to install it.

insert image description here
insert image description here

5. Select Execute to install the content that does not meet the conditions, wait for the installation to complete and select Next.

insert image description here
insert image description here

6. Select Next.

insert image description here

7. Default configuration, select Next.

insert image description here

8. Default configuration, select Next.

insert image description here

9. Set the database login password.

insert image description here

10. Default configuration, select Next.

insert image description here

11. Default configuration, select Execute.

insert image description here

12. Select Finish when finished.

insert image description here

13. Default configuration, continue to select Next.

insert image description here

14. Default configuration, continue to select Finish.

insert image description here

15. Default configuration, continue to select Next.

insert image description here

16. Connect to the server test, select Next after success.

insert image description here

17. Default configuration, select Execute.

insert image description here

18. Default configuration, select Finish.

insert image description here

19. Default configuration, select Next.

insert image description here

20. The default configuration, select Finish, and these two interfaces will pop up, you can close them first and ignore them.

insert image description here

21. Open win+r, enter cmd, then press Enter to confirm, enter services.msc, then press Enter to confirm.

insert image description here

22. After the service pops up, find MySQL80 to see if the service status is started. If it is not started, right-click and select to start it.

insert image description here

23. Find the lower left corner of the system and select Start, find the MySQL client command line tool and open it.

insert image description here

24. Enter the login password you set during the installation process.

insert image description here

25. If the login is successful, the MySQL service is started successfully.

insert image description here

26. Right-click My Computer -> Properties -> Advanced System Settings -> Environment Variables

insert image description here
insert image description here

27. Create a new environment variable, enter MYSQL_HOME for the variable name, and enter C:\Program Files\MySQL\MySQL Server 8.0 for the variable value. This is the installation path of Mysql, and I am the default installation path.

insert image description here
insert image description here

28. Click Path, then click New, add the environment variable %MYSQL_HOME%\bin, and finally confirm, confirm, confirm.

insert image description here
insert image description here

3. Verify whether the Mysql installation is successful

1. Open win+R, enter cmd, then ctrl+shift+Enter, and run it as an administrator.

insert image description here

2. Enter mysql -u root -p, then press Enter, enter the password, and finally see Welcome... means the installation is successful.

insert image description here


Summarize

1. The download and installation process of Mysql is relatively smooth, and no other problems have been encountered for the time being. If you have other problems in the future, please come to discuss.

It is a blogger's honor to help you solve problems, and your support is the biggest motivation for my creation! :) Welcome to follow and like

Guess you like

Origin blog.csdn.net/King_Treasure/article/details/127916572