赞
踩
1. 打开终端,并在里面输入touch .bash_profile (新建一个.bash_profile文件)
2. 继续输入ls -al(检查主目录下是否有了.bash_profile文件)
3. 继续输入open .bash_profile(打开.bash_profile文件)
5. .bash_profile文件里输入export PATH=${PATH}:/ + MySQL可执行文件所在位置(添加环境变量)
(终端输入ps -ef | grep mysql。可查询MySQL可执行文件所在位置)
6. 终端输入source .bash_profile(让配置语句临时生效)
1. 终端输入touch .zshrc(新建一个.zshrc文件)
2. 终端输入open .zshrc( 打开.zshrc文件)
3. 在.zshrc文件里输入激活命令source ~/.bash_profile
4. 回到终端输入source .zshrc(激活刚才输入的命令)
恭喜你大功告成
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。