找到linux下面mysql执行路径
eipdb2:/eipdb2/mysql/bin # pwd
/eipdb2/mysql/bin
找到/etc/profile
在最后加入环境变量
export PATH=/eipdb2/mysql/bin:$PATH
"/etc/profile" 419L, 9839C
source profile让环境变量生效
以后在任何目录下都能输入
mysql -uroot -p密码
登录mysql成功
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22996654/viewspace-2146041/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22996654/viewspace-2146041/