Tip: Before installing, you need to confirm which version of mysql you need to avoid wasting time.
Article Directory
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.
2. Select MySQL Community (GPL) Downloads.
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.
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.
5. You can choose the current version or choose other versions through Archives and then download it finally.
6. After the download is complete, you can get the .msi file, and perform the following installation operations.
Two, Mysql installation
1. Double-click the downloaded .msi file, if user account control is required, select Yes.
2. Select No here, no upgrade is required for the time being.
3. Select the type of installation, generally the default is fine, and then click Next.
4. Whether the installation satisfies the conditions, and the unsatisfied conditions will be displayed. After selecting Next, select yes to install it.
5. Select Execute to install the content that does not meet the conditions, wait for the installation to complete and select Next.
6. Select Next.
7. Default configuration, select Next.
8. Default configuration, select Next.
9. Set the database login password.
10. Default configuration, select Next.
11. Default configuration, select Execute.
12. Select Finish when finished.
13. Default configuration, continue to select Next.
14. Default configuration, continue to select Finish.
15. Default configuration, continue to select Next.
16. Connect to the server test, select Next after success.
17. Default configuration, select Execute.
18. Default configuration, select Finish.
19. Default configuration, select Next.
20. The default configuration, select Finish, and these two interfaces will pop up, you can close them first and ignore them.
21. Open win+r, enter cmd, then press Enter to confirm, enter services.msc, then press Enter to confirm.
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.
23. Find the lower left corner of the system and select Start, find the MySQL client command line tool and open it.
24. Enter the login password you set during the installation process.
25. If the login is successful, the MySQL service is started successfully.
26. Right-click My Computer -> Properties -> Advanced System Settings -> Environment Variables
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.
28. Click Path, then click New, add the environment variable %MYSQL_HOME%\bin, and finally confirm, confirm, confirm.
3. Verify whether the Mysql installation is successful
1. Open win+R, enter cmd, then ctrl+shift+Enter, and run it as an administrator.
2. Enter mysql -u root -p, then press Enter, enter the password, and finally see Welcome... means the installation is successful.
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