Installation tutorial for mysql5.7.10 in Mac, macmysql5.7.10

Source: Internet
Author: User

Installation tutorial for mysql5.7.10 in Mac, macmysql5.7.10

The following figure shows how to install and configure mysql on Mac.

Install mysql using the installation package

Double-click the pkg file to install

All the way down, remember to save the password in the last pop-up box (it is your mysql root Account Password)

Under normal circumstances, the installation is successful.

In this case, the installation is successful, but additional configuration is required:

(1) enter/usr/local/mysql/bin to check whether mysql exists in this directory. For details, see pic6.
(2) execute vim ~ /. Bash_profile
Add the mysql/bin directory to this file. For details, see pic7:
PATH = $ PATH:/usr/local/mysql/bin
After adding the file, Press esc and enter wq to save the file.
Finally, enterSource ~ /. Bash_profile
Now you can log on to mysql through mysql-uroot-p, and you will be asked to enter the password (that is, the password shown on the image). After the login is successful, you can change the password through the following command

Set password for 'root' @ 'localhost' = PASSWORD ('newpass ')

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

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.