Download MySQL for Mac https://dev.mysql.com/downloads/installer/
Website download very Slow---Baidu Cloud: Link: https://pan.baidu.com/s/1c1IdwSo Password: jfv1
2. Double-click mysql-5.7.20-macos10.12-x86_64.dmg to Unzip, double-click mysql-5.7.20-macos10.12-x86_64.pkg to install
3. Continue, Continue, Agree, Install, enter the administrator password
4. Record the password in the pop-up window, this is the notification bar cannot be copied (the popup password can be copied)
5. Go to System Preferences, find MySQL, start the service
6. Add MySQL commands to the system
(1). Go to/usr/local/mysql/bin to see if there is MySQL in this directory
(2). Perform Vim ~/.bash_profile
Add the Mysql/bin directory to the file
Path= $PATH:/usr/local/mysql/bin
When you are finished adding, press ESC, and then enter Wq save.
(3). Finally enter source ~/.bash_profile on the command line
7. Log in to MySQL via Mysql-uroot-p and enter the previously saved password
8. Reset MySQL Initial password
SET PASSWORD for ' root ' @ ' localhost ' = PASSWORD (' NewPassword ');
NewPassword Enter the password you want to enter
Workbencha Direct Installation
Baidu Cloud: Link: https://pan.baidu.com/s/1slPuIuh Password: FVR3
Enter the modified password after entering
Install MySQL and workbench on your Mac