1. Download the MySQL installation file
MySQL official website: https://www.mysql.com/
Select the appropriate installation version according to the model
Choose MySQL Installer installation here: Mysql-installer-community-5.7.21.0.msi
2. mysql Installer installation
1) Select the installation mode-Select Custom mode here
2) Select the desired product--according to individual needs, select the desired product
3) Product Installation
4) Server type selection
5) Network configuration--configuration port, etc., select the default value here
6) set root password, if password forgotten, dos enter C:\Program files\mysql\mysql Server 5.7\bin directory, use mysql-u root-p input initialization password "123456", enter after change password
7) Set up the Windows service, where the default settings are used directly
8) configuration Installation and commissioning
3. Under application find MySQL 5.7 Command line client-unicode, enter the setup password, start the database operation
Installing MySQL database under Windows