命令行的时候每次都要进入mysql的目录/usr/local/mysql/bin太麻烦了,为了能在任何一个位置直接进入,设置一下环境变量即可 vi /etc/profile 加入export PATH=$PATH:/usr/local/MySQL/bin即可 原文: http://www.cnwebsky.com/a/32036.html 转载于:https://blog.51cto.com/star2011/475528