您的位置: 首页 > IT文章 > MySQL问题解决:-bash:mysql:command not found MySQL问题解决:-bash:mysql:command not found 分类: IT文章 • 2022-08-27 16:23:43 问题: [root@linux115 /]# mysql -uroot -p -bash: mysql: command not found www.2cto.com 因为mysql命令的路径在/usr/local/mysql/bin下面,所以你直接使用mysql命令时,系统在/usr/bin下面查此命令,所以找不到了 解决办法是: ln -s /usr/local/mysql/bin/mysql /usr/bin 做个链接即可