select * from user G use mysql
select * from user limit 1 G update user set Host='%' where `User`='root' and `Host`='localhost';
select * from user limit 1 G
flush privileges;