# vim /etc/profile 在最后,添加: export PATH="/usr/local/webserver/mysql/bin:$PATH" #添加的路径 保存,退出,然后运行: #source /etc/profile 不报错则成功。