版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/IOIO_/article/details/84112313
Problem
Problem: MySQL: -bash: mysql: command not found
On CentOS, MySQL works fine, but can not use “mysql” command in terminal, and says “-bash: mysql: command not found”.
Solution
# cd /usr/local/bin
# ln -fs /MYSQLPATH/bin/mysql mysql
MYSQLPATH is the path to MySQL installed directory.