//打开mysql数据库
mysql -u root -p
use mysql
select Host,User from user;
update user set host = '%' where user = 'root';
//刷新权限
flush privileges;
//打开mysql数据库
mysql -u root -p
use mysql
select Host,User from user;
update user set host = '%' where user = 'root';
//刷新权限
flush privileges;