Mysqlmysqladmin: commandnotfound _ MySQL

Source: Internet
Author: User
Mysqlmysqladmin: commandnotfound solution bitsCN.com


Mysql mysqladmin: command not found

Sometimes, when you install the MySQL program, directly enter the mysql or mysqladmin command to send

The command does not exist because the system will find the command under/usr/bin by default. if

This command is not in this directory. of course, the command cannot be found. what we need to do is map a link to the/usr/bin directory, which is equivalent to creating a link file.

First, you must know the full path of the mysql command or mysqladmin command, such as the mysql path.

Yes:/usr/local/mysql/bin/mysql. we can execute the following command:

Ruby code

Ln-s/usr/local/mysql/bin/mysql/usr/bin

BitsCN.com

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.