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

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

WBOY
Release: 2016-06-01 13:36:11
Original
1125 people have browsed it

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
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template