Install MySQL configuration mysql environment variable under OS system

Source: Internet
Author: User

Learn hive need, gossip not to say the contents of this article:

    1. Download MySQL for Mac
    2. Download MySQL Workbench
    3. Install MySQL and MySQL Workbench
    4. Configuring the environment variables for MySQL on OS systems
    5. Go to MySQL

1. Download MySQL for mac:http://dev.mysql.com/downloads/

    

Note that the download at the end is a. dmg format file, which is a mistake .....

2. Download MySQL workbench:http://dev.mysql.com/downloads/

Same address as MySQL

    

3, the fool installs the MySQL and the MySQL Workbench

Note: Mysql Installation path:/usr/local/mysql

MySQL installation is completed, will generate a root account and a random initial password, copy the password to a place to save good, this does not care

Install Workbench, enter Workbench, will prompt the password has expired, paste the initial random password into the old password, and then enter a new password

To open the MySQL service:

Open Services, Mysql-I, System preferences, other

4. Configuration of MySQL environment variable

A) Create a file

sudo touch/etc/paths.d/mysql

b) Open with Vim:

sudo vim/etc/paths.d/mysql

c) Edit the file and add the following: (if not edited, save ....) )

/usr/local/mysql/bin

  

5. Go to MySQL

Terminal Entry command: Re-enter the password

Mysql-u root-p

~ All done!

Install MySQL configuration mysql environment variable under OS system

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.