Installation
To http://www.mysql.com/downloads/, select the bottom of the MySQL Community Edition, click on the MySQL Community server download, download DGM archive version.
After the download, we found that there is only one DMG master file, which appears to have multiple installation files before the 5.7 version.
Point to open this file, step-by-step installation, notice in the success of the pop-up prompt box, give a temporary password, must remember, must remember, must remember!!!! If not found, please look at the desktop notifications.
After the installation is successful, go to the last line of preferences to find MySQL and start MySQL (select Start).
The following is a good fix for the temporary password:
Open terminal, General MySQL will default to exist in the local directory, so enter
cd/usr/local/mysql/bin/
Execute the following command:
./mysqladmin–u root–p Password
Then you will be prompted to enter a password, enter your temporary password, after the success will require a new password, will appear in the following code
New Password:
Confirm New Password:
Then the since password would be sent to server in plain text, with the use of SSL connection to ensure password. This represents the success of the modification.
Then use the new password to login to MySQL,
cd/usr/local/mysql/bin/
./mysqladmin–u Root–p
And then enter the new password is good!
Unloading!!!
A variety of problems occurred during the installation process, causing me to repeat the installation many times and eventually make a mess. Later know to install the new need to remove the MySQL before, a file can not stay. So find the complete code from the Internet and keep it here.
Infringement Delete ~ ~ ~ I am the law-abiding good boy
sudo rm/usr/local/mysql
sudo rm-rf/usr/local/mysql*
sudo rm-rf/library/startupitems/mysqlcom
sudo rm-rf/library/preferencepanes/my*
RM-RF ~/library/preferencepanes/my*
sudo rm-rf/library/receipts/mysql*
sudo rm-rf/library/receipts/mysql*
sudo rm-rf/var/db/receipts/com.mysql.
Call Vim/etc/hostconfig to delete the mysqlcom=-yes-line.
Tips: I do not seem to delete clean, so under the Finder-go-gotofolder input/usr/local, to see if there are duplicate MySQL files, and some words will be completely deleted.
Yes, after downloading, there will be a MySQL folder with the version name you downloaded and a MySQL shortcut, we all call this shortcut.