1. Download
1. Click the latest download or copy https://dev.mysql.com/downloads/windows/installer/ link on the MySQL msi official website .
2. Download according to your needs. Here you choose Windows (x86, 32-bit), MSI Installer (mysql-installer-web-community-8.0.19.0.msi)
[Note] mysql-installer-web-community- 8.0.19.0.msi 18.6M is a network installation, which must be networked during installation; mysql-installer-community-8.0.19.0.msi 398.9M is an offline installation. It is generally recommended to download the version used for offline installation, but the network installation is selected here.
3. Click ** No thanks, just start my download. ** to download directly
4. Download is complete
[Note: or you can directly click the Baidu cloud disk link: https://pan.baidu.com/s/1n3ZmTAg4rXehTgp8r-vEfg
Extraction code: 0njp Download mysql-installer-community-8.0.19.0.msi】
2. Installation
1. Select the product you want to install. If you want to change the installation location, click Advanced Options to change. Click Next
2. Click Next.
3. Click Execute to start downloading.
4. All products have a green check mark in front of them to download. Click on Next.
5. Click Next.
6. Select Next.
7. Select Next.
8. Choose Next.
9. Fill in the root's password twice here, you must remember the password! (If you need to create other users, you can click Add User to add). Choose Next.
10. Choose Next.
11. Select Execute.
12. The configuration is complete after playing the green checkmark in all circles. Choose Finish.
13. Choose Next.
14. Select Finish.
15. The installation is complete. It can be accessed in MySQL Workbench CE or MySQL Command Line Client.
If you want to use the mysql command to access directly on the command line, you need to configure it in the system variable, otherwise you will get an error: 'mysql' is not an internal or external command, nor is it a running program or batch file. .
3. Configure environment variables
Add the path where mysql.exe is located in the environment variable-> system variable-> PATH At
this time, you can access the mysql database from the command line.