Download and install
Go to MySQL official website (http://dev.mysql.com/downloads/mysql/) Download your own Mac relative to MySQL Community
After downloading the pressure, you will find that MySQL has only one DMG master file xxxx.pkg
Special reminders When installing this file: 5.7 After installing MySQL is no longer the same as the previous version of the default password: root, the installation process will appear a popup window prompt, there is a temporary password, please copy it to save, you will need to use
Modify temporary password
After the installation is successful, please start MySQL in your preferences
Use the temporary password to log in to MySQL, see if you can log in, if possible, the following will be a temporary password changes.
After successful installation, use the temporary password to log in to MySQL, see if you can log in, if possible, the following will be a temporary password changes.
Enter/usr/local/mysql-5.7.../bin/
Execute./mysql-u root-p
Enter the temporary password ( is prompted in the installation process pop-up window, if not saved, please see your desktop to the right of the notification )
Use temporary password login success will have such a hint: You must reset your password using the ALTER USER statement before executing this statement.
This is the prompt you need to reset the password.
Quit MySQL
or under the/usr/local/mysql-5.7.../bin/path,
Execute the command: The code is as follows:
./mysqladmin-u root-p Password
Then enter your temporary password and the password will be reset after success
The code is as follows: New Password:
Confirm New Password: Enter the password.
Shortly thereafter, since password would be sent to server in plain text, with the use of SSL connection to ensure password safety. This is just a hint indicating that the modification was successful
Then you can go back in and log in to MySQL with the new password, and the installation is complete.
MAC Installation mysql5.7 Considerations