Linux下运行mysql命令提示command not found解决办法
把MYSQLPATH/bin/映射到/usr/local/bin目录下:
-
cd /usr/local/bin
-
ln -fs /MYSQLPATH/bin/mysql mysql
还有其它常用命令mysqladmin, mysqldump等
例如
ln -fs /usr/local/mysql/bin/mysql mysql
转载:https://blog.csdn.net/whosheng/article/details/50006093