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

mysql mysqladmin: command not found解决方法_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:34:38
Original
2454 people have browsed it

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
Related labels:
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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template