use mysql;
update user set password=password('root') where user='root' and host='localhost';
-- update mysql.user set password=password('root') where user='root';
-- update mysql.user set authentication_string=password('root') where user='root' ;
flush privileges;
如果 update user set password=password('root') where user='root' and host='localhost'; 有问题
则使用 update mysql.user set authentication_string=password('root') where user='root' ;