Home  >  Article  >  Backend Development  >  装配mysql时mysqladmin password '密码' 命令报错

装配mysql时mysqladmin password '密码' 命令报错

WBOY
WBOYOriginal
2016-06-13 13:23:04997browse

安装mysql时mysqladmin password '密码' 命令报错
安装mysql时mysqladmin password '密码' 命令报错 -bash: mysqladmin: command not found
locate mysqladmin 报错 -bash: mysqladmin: command not found
请问如何解决?


------解决方案--------------------
到mysql 安装的目录下执行

例如 bin 下 ./mysqladmin

上次也是你问这个问题?
------解决方案--------------------
楼上正确,基本上mysqladmin的路径不对
------解决方案--------------------
去configure --prefix=xxx指定的xxx下的mysql/bin里运行它。

例如我的mysql编译时指定在libs目录下,那么路径如下:

[liangdong@bb-browser-test00.vm.baidu.com ~]$ ll libs/mysql/bin/mysqladmin 
-rwxr-xr-x 1 liangdong liangdong 4222273 Jul 17 14:53 libs/mysql/bin/mysqladmin
[liangdong@bb-browser-test00.vm.baidu.com ~]$ pwd
/home/liangdong

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