1. Download the MYSQL-5.7.13-OSX10.11-X86_64.DMG installation package and click on the DMG installation package to install
2. After the installation is complete, the following information is displayed:
2016-06-23t01:14:48.649253z 1 [Note] A temporary password is generated for [email protected]: lfufyqu; M0-t
If you lose this password, please consult the sections how to Reset the Root password in the MySQL reference manual.
3.root User default password is lfufyqu; M0-T; The installed directory is the/usr/local/mysql-version number
4. You can start and stop the MySQL service in "settings", or you can use the following command to Qidong
Support-files/mysql.server start
Support-files/mysql.server stop
Support-files/mysql.server Stute
5. Login mysql command:/mysql-u root-p Enter the default password above
After entering, modify the default password, or you will not be able to manipulate the database:
To modify the default password:
Mysql>set Password = password (' 123 ');
6. The installation is complete, you can login with the new password.
Installing MySQL steps under Mac system