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

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

WBOY
Release: 2016-06-13 10:35:19
Original
1000 people have browsed it

安装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目录下,那么路径如下:

[[email protected] ~]$ ll libs/mysql/bin/mysqladmin 
-rwxr-xr-x 1 liangdong liangdong 4222273 Jul 17 14:53 libs/mysql/bin/mysqladmin
[[email protected] ~]$ pwd
/home/liangdong

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