Mac method of adding an mysql path to an environment variable
- 2020-06-23 02:07:08
- OfStack
1. Open the terminal and enter cd ~
This will go into the ~ folder
2. Then type touch.bash_profile
When I hit enter,
2. Enter open-ES14en. bash_profile
This file opens in TextEdit (it should be a blank document if you haven't configured environment variables before). If there is any content, please enter it before the terminator. If there is no content, please enter the following statement directly:
export PATH=${PATH}:/usr/local/mysql/bin
Then, save, exit TextEdit (1 must exit), close the terminal and exit.