Method: http://www.widlabs.com/article/mac-os-x-install-mysql-57-with-tar-gz
MySQL:http://www.mysql.com/downloads/ , you'll see a "download" click under "MySQL Community Server" on the page
MySQL (GUI tool):https://dev.mysql.com/doc/workbench/en/wb-installing-mac.html
If you forget your password, force the modification:
Step1:
Stop MySQL Service
Step2:
Enter Terminal input: cd/usr/local/mysql/bin/
Log in Administrator right after enter sudo su
Enter the following command to disable the MySQL authentication feature after entering the carriage return./mysqld_safe--skip-grant-tables &
MySQL will restart automatically after carriage return (the MySQL status in preferences will become running)
Step3.
Enter the command./mysql
Enter command FLUSH privileges after carriage return;
After entering, enter the command ALTER USER ' root ' @ ' localhost ' identified by ' your new password ';
Mac OS X under TAR. GZ Way to install MySQL 5.7+