mysql-5.7 after the compression package installation has a small change
The first step: Download https://dev.mysql.com/downloads/mysql/on the website
Step Two: Extract to a folder
Step Three: Configure environment variables
To insert a%mysql_home%\bin into the last face of a path.
Fourth step: Run the command line as an administrator, press Win+r to enter CMD, click the right mouse button to run as Administrator
Fifth step: Go to D:\mysql-5.7.18-winx64\bin
Initialize data: mysqld--initialize-insecure--user=mysql
Starting service: Mysqld--user=mysql
Initializing the MySQL root password
mysqladmin-u root password ' new-password '
See https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html for details.
Or start with the fifth step%mysql_home%\bin\mysqld--initialize--user=mysql--console
Sixth Step Registration Service Mysqld--install MySQL
Start the service with the net start MySQL command
Mysql-uroot-p
Enter the random password you obtained when performing step fifth
Display the above information is successful
Reset Password: mysql>set password for [email protected] = password (' 123456 ');
Shutdown service: net stop MySQL
Installing Mysql-5.7.18-winx64.zip under Windows 7