set password for root@localhost = password('新密码'); update user set host = '%' where user ='root'; flush privileges;