Home >Database >Mysql Tutorial >MySQL问题解决:-bash:mysql:command not found_MySQL

MySQL问题解决:-bash:mysql:command not found_MySQL

WBOY
WBOYOriginal
2016-06-01 13:36:111126browse

bitsCN.com


MySQL问题解决:-bash:mysql:command not found

 

问题: 

      [root@linux115 /]# mysql -uroot -p 

 

      -bash: mysql: command not found 

   因为mysql命令的路径在/usr/local/mysql/bin下面,所以你直接使用mysql命令时,
系统在/usr/bin下面查此命令,所以找不到了 

 

   解决办法是:

 

 ln -s /usr/local/mysql/bin/mysql /usr/bin 做个链接即可

 

bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn