[root@localhost ~]# mysqladmin -uroot password '123456'
-bash: mysqladmin: command not found
建立软链接就可以使用mysqladmin命令
注意:/usr/local/mysql 为你自己的mysql安装目录
ln -fs /usr/local/mysql/bin/mysqladmin /usr/local/bin/mysqladmin
然后就可以使用mysqladmin命令
mysqladmin -uroot password '123456'
Warning: Using a password on the command line interface can be insecure.
[root@localhost bin]#