use mysql;
select 'host' from user where user='root';
update user set host = '%' where user ='root';
flush privileges;
use mysql;
select 'host' from user where user='root';
update user set host = '%' where user ='root';
flush privileges;