mysql -u root -p
update user set password=password('pwd') where user='user';若报错:update mysql.user set authentication_string=password('pwd') where user='user' ;
flush privileges;