Problem: MySQL: -bash: mysql: command not found

版权声明:本文为博主原创文章,未经博主允许不得转载。 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.


Reference

https://www.cnblogs.com/jr1260/p/6590860.html

猜你喜欢

转载自blog.csdn.net/IOIO_/article/details/84112313