[root@amm ~]# mysql -uroot -p
mysql> use mysql;
mysql> update user set password=password("123456") where user='root';
mysql> flush privileges;