First, download the zip installation version (not recommended exe version)
Third, configure the environment variables
= MYSQL_HOME "???" // ??? refers to their mysql directory
PHAT = % MYSQL_HOME%
Fourth, create a new my.ini file in the MySQL directory
[mysqld]
basedir=???
datadir=???\data\
port=3306
skip-grant-tables
Fifth, open CMD with administrator privileges, switch to the path of MySQL bin directory
-Install input mysql // install mysql
--Initialize-input in the insecure --user = mysqld MySQL // initialization data file
After entering the root password change screen update mysql.user set authentication_string = password ( 'the password') where user = 'root' and Host = 'localhost' ';
Enter the privileges flush; // refresh permission
Sixth, modify my.ini file to delete the last sentence of skip-grant-tables
Seven restart mysql
net stop mysql
net start mysql