Linux下运行mysql命令提示command not found解决办法

把MYSQLPATH/bin/映射到/usr/local/bin目录下:

  1.  
    cd /usr/local/bin
  2.  
    ln -fs /MYSQLPATH/bin/mysql mysql

还有其它常用命令mysqladmin, mysqldump等

 

例如

 

ln -fs /usr/local/mysql/bin/mysql mysql

转载:https://blog.csdn.net/whosheng/article/details/50006093
posted @ 2020-05-11 06:56  xing柠檬  阅读(2529)  评论(0编辑  收藏  举报