Home >Database >Mysql Tutorial >mysql mysqladmin: command not found解决方法_MySQL

mysql mysqladmin: command not found解决方法_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:34:382478browse

bitsCN.com


mysql mysqladmin: command not found解决方法

 

有时候安装好MySQL程序的时候,直接输入命令mysql或mysqladmin会发

现提示命令不存在,这是由于系统默认会查找/usr/bin下的命令,如果

这个命令不在这个目录下,当然会找不到命令,我们需要做的就是映射一个链接到/usr/bin目录下,相当于建立一个链接文件。

 

首先得知道mysql命令或mysqladmin命令的完整路径,比如mysql的路径

 

是:/usr/local/mysql/bin/mysql,我们则可以这样执行命令:

 

Ruby代码  

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