Build MySQL environment under Mac

Source: Internet
Author: User
Tags mysql in

System version: OS X El Capitan

MySQL version: MySQL Community Server(GPL) (MYSQL-5.7.13-OSX10.11-X86_64.DMG)/* Website download installation, brew seems to support, next try * *

1. Open DMG installation pkg, installation should have a notification bounce out, initial password, remember

2. Open MySQL in System Preferences, click Start

3. Open terminal, set the MySQL environment variable

CD ~Touch-E. Bash_profile

This is a popup TextEdit, written to export Path=${path}:/usr/local/mysql/bin, save, exit.

4. Restart Terminal, enter mysql-u root-p, enter the initial password;

5. At this point should come out mysql>, at this time need to do is to change the initial password, or will always prompt error

SET PASSWORD = PASSWORD (' your password ');

6. You can do whatever you like next.

Build MySQL environment under Mac

Related Article

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.