进入控制台,
>mysql -u root -p
>use mysql;
>UPDATE user SET host='%' WHERE user = 'root';
>flush privileges;