阅读:2070回复:0
MySQL问题解决:-bash:mysql:command not found
MySQL问题解决:-bash:mysql:command not found
问题: [root@smsyun /]# mysql -u root -p -bash: mysql: command not found 因为mysql命令的路径在/usr/local/mysql/bin下面,所以你直接使用mysql命令时, 系统在/usr/bin下面查此命令,所以找不到了 解决办法是: ln -fs /usr/local/mysql/bin/mysql /usr/bin 做个链接即可(/usr/local/mysql/bin/mysql)为你的mysql安装的目录 |
|