- 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