01 / 22, 2014

1.启动终端Terminal

2.进入当前用户的home目录

输入cd ~

3.创建.bash_profile

输入touch .bash_profile

4.编辑.bash_profile文件

vi ~/.bash_profile
export PATH=/usr/local/mysql/bin:$PATH
:wq
source ~/.bash_profile

5.查看是否生效

echo $PATH


comments powered by Disqus