MySQL 5.7. 17 Compressed Installation Notes

  • 2021-07-03 00:58:33
  • OfStack

In this article, we share the installation steps of mysql 5.7. 17 compression version for your reference. The specific contents are as follows

1. Download the compressed package and unzip it to the corresponding directory

2. Add the bin directory path of MySQL to the Path environment variable

3. Modify the configuration file my-default. ini to set the


\# basedir = .....
\# datadir = .....

Amend to read:


basedir = G:\Program\Program Files\MySQL
datadir = G:\Program\Program Files\MySQL\data

4. Run cmd, cd to bin directory of MySQL as administrator, enter mysqld-initialize-insecure-user=mysql to generate root account without password

5. Re-enter mysqld-install to show successful installation

6. Start the service: Enter net start mysql to show that the service started successfully

7. Login: Enter mysql-u root-p, display the input password and enter directly

8. Change the password: Enter set password = password ('New Password'); (Don't forget the semicolon) to change the password

Wonderful topic sharing: mysql installation tutorials for different versions mysql5.7 installation tutorials for different versions mysql5.6 installation tutorials


Related articles: