use mysql;update user set authentication_string=password('新密码') where user='root' and Host='localhost';flush privileges;