1.授权

grant all privileges on *.* to 'root'@'%' identified by 'password' with grant option;
flush privileges;

2.改表

use mysql
update user set host = '%' where user = 'root';

 

posted on 2018-03-08 09:17  浮舟z  阅读(78)  评论(0)    收藏  举报