Download the MySQL-5.7.19 version, unzip it and discover that the installation package is not an EXE file:
So the online search for information, found another way to install.
1. Create a new environment variable, my Computer-Properties-advanced-environment variables-System variables-NEW
2. Add the newly created system variable at the end of the path of the system variable. (Put;%mysql_home%\bin into the last side of Path)
3. Run command line as Administrator, press Win+r to enter CMD, right-click to run as Administrator 4. Command line execution:%mysql_home%\bin\mysqld--initialize--user=mysql-- Console5. Registration Service: Mysqld--install MySQL6. Start the service with the net start MySQL command
7. Log in mysql:mysql-u root-p using the command line
Enter the random password you obtained when performing step 4th
When the login is successful, the message will appear:
The password must be reset for the first logon:
Reset Password: mysql>set password for [email protected] = password (' 123456 ');
Shutdown service: net stop MySQL
Reference Links:
Installing Mysql-5.7.18-winx64.zip under Windows 7
Install MySQL-5.7.19 under Windows