use mysql;update user set Password = Password('newPwd') where user='root';//更改root用户的密码flush privileges;