1. Download the latest MySQL file and unzip my location is F:\mysql-5.7.14-winx64
2.f:\mysql-5.7.14-winx64\bin; Add to environment variable-system variable-path
3. Copy My_default.ini Rename to My.ini, create new Data folder
4. In
[MYSQLD] Below add the following code:
Port = 3306
Basedir=f:\mysql-5.7.14-winx64
Datadir=f:\mysql-5.7.14-winx64\data
5. The administrator runs CMD, enters F:\mysql-5.7.14-winx64\bin, enters F: is without CD, Direct F:
6. Execute mysqld --initialize --user=mysql --console , remember the last line of the password
7. Run a different cmd again,
mysqld --install MySQL–> added to the system service, the service will be able to find the MySQL service
net start mysql–> start MySQL Service
8. mysql -u root -p Remember the password
set password = password(‘***NewPassword***‘);
Just enter your own new password in the NewPassword location.
Mysql-5.7.14-winx64 Decompression Version Configuration