Configuration of "MySQL" MySQL for MAC environment variable

Source: Internet
Author: User
  • It was in the Macbookpro that was just entered yesterday. have been deeply in love with.
  • A variety of shortcut keys, terminal commands, various compilers, system preferences and so on, feel the pressure is great, to learn a lot of things.
  • To get to the point, the project needs MySQL, installation according to the official website download is no problem.
  • But accustomed to win under the CMD command, Mac currently found no good graphical interface.
  • How terminal access MySQL online there's quite a lot I've also kissed it again
  • Below:

1. Enter sudo vim. bash_profile

Enter the user's password (i.e. the power-on password) after the execution

(note here that the password input of the MAC does not show the number of characters, that is, always only display, the password to return to the line)

2. Enter at the bottom of the document: Export Path=${path}:/usr/local/mysql/bin

Then ESC exits the insert state and enters at the bottom: Wq save exit

A lot of blog here is written to save-restart terminal on OK, = = I am a novice ah, Baidu half-day

3. Input: source. bash_profile

Enter execution, run environment variable.

4. Re-enter MySQL to use.

5. Some blogs write:

(I found out after the test, the above practice every time you turn off the terminal in the open need to re-source.). bash_profile So VI ~/.ZSHRC, added here:

Export Path=${path}:/usr/local/mysql/bin

After saving source ~/.ZSHRC

Then you can do it once and for all. )

But after I test, do not need.

  

Configuration of "MySQL" MySQL for MAC environment variable

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.