MAC10.11.2 version of MySQL 5.7.10 installation tutorial

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.