update user set authentication_string=password('新密码') where user='root' and Host='localhost';
flush privileges;
注意:host字段是localhost还是%
update user set authentication_string=password('新密码') where user='root' and Host='localhost';
flush privileges;
注意:host字段是localhost还是%