One. Download MySQL
1. Go to MySQL official website download area: http://dev.mysql.com/downloads/
Two. Install MySQL
Three. Configuring the MySQL server
3.1 Open System Preferences find MySQL
3.2 Turn on MySQL server
3.3 Entering the server
3.3.1 Configuring the server environment
1. Open the terminal and enter the command first
Alias Mysql=/usr/local/mysql/bin/mysqlalias Mysqladmin=/usr/local/mysql/bin/mysqladmin
Then enter Vim./bash_profile return
Input I switch to insert mode to edit the Bash_profile file, add MySQL installation path at the end of the file
2. Save back Input command
Mysql-u root-p, required password is the installation file is the last step pop-up random password
3. Successfully logged in page
3.3.2 Change Password
After successfully logging in to the server enter the command: \q exit the server
Input directive: Cd/usr/local/mysql/bin Jump to Bin directory
Input directive:./mysqladmin-u root-p password you want to set a new password (must be in the bin directory) to modify your password
3.4 You can log in again with the new password after successfully changing the password. To complete this.
MAC10.11.2 version of MySQL 5.7.10 installation tutorial