When installing mysql, the mysqladminpassword Command reports an error. when installing mysql, the mysqladminpassword Command reports an error-bash: mysqladmin: commandnotfoundlocatemysqladmin reports an error-bash: mysqladmin: commandnotfound. how can this problem be solved? -When mysql is installed, the mysqladmin password 'password' Command reports an error.
When mysql is installed, the mysqladmin password 'password' command reports an error-bash: mysqladmin: command not found
Locate mysqladmin error-bash: mysqladmin: command not found
How can this problem be solved?
------ Solution --------------------
Run the following command in the mysql installation directory:
For example, in bin./mysqladmin
The last time you asked this question?
------ Solution --------------------
The upstairs is correct. Basically, the mysqladmin path is incorrect.
------ Solution --------------------
Run it in mysql/bin under configure -- prefix = xxx.
For example, if mysql is specified in the libs directory during compilation, the path is as follows:
Liangdong@bb-browser-test00.vm.baidu.com ~ $ Ll libs/mysql/bin/mysqladmin
-Rwxr-xr-x 1 liangdong 4222273 Jul 17 libs/mysql/bin/mysqladmin
Liangdong@bb-browser-test00.vm.baidu.com ~ $ Pwd
/Home/liangdong