1. Decompression
2. Open My_default.ini
Change Basedir to MySQL's extracted directory
Change DataDir to MySQL's extracted directory \data
3. Changing Environment variables
Add Mysql_home to the MySQL directory in the system variable
Add Mysql_home\bin inside Path
4. Open CMD window with administrator, enter Mysqld-install, install service under the Bin folder of MySQL unzip directory (installation directory)
5, after the successful installation of the same directory input, mysqld--initialize, initialize, generate the corresponding Data folder (note that the Data folder is initialized when the generated is not manually created)
6. net start MySQL start MySQL service
7, after the successful start, input mysql-u root-p This is the comparison pit. Without password login, the MySQL5.7 version automatically gives a random password at the time of installation.
This random password, to the MySQL installation directory under Search, *.err. Then open with text, Ctrl + F, search temporary, you will find the random password, with this random password login
8, after the random password login, change the root password,
Set password for [email protected] = password (' 123456 ');
The above sentence is to change the root password to 123456. The next time you use root login you can use the new password (123456).
"Record" Installation of Mysql 5.7 decompression version