Sometimes when installing the MySQL program, the direct input command mysql or mysqladmin will find that the prompt command does not exist, this is because the system by default will find the command under/usr/bin, if this command is not in this directory, of course, will not find the command, All we need to do is map a link to the/usr/bin directory, which is equivalent to creating a linked file.
The first thing you need to know is the full path to the MySQL command or mysqladmin command, such as the path to MySQL:/usr/local/mysql/bin/mysql, we can execute the command like this:
1 ln-s/usr/local/mysql/bin/mysqladmin/usr/bin/mysqladmin
The web is written ln-s/usr/local/mysql/bin/mysql/usr/bin such directories are already there.
And/usr/bin below, are written every command link, MySQL mysql_safe such.
MySQL Mysqladmin:command not found workaround