When assembling mysql, the mysqladminpassword 'password' Command reports an error

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.