1.查询当前root状态,默认root的host是localhost

use mysql;
select user,host from user;

2.update root的host为%

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

3. 检查客户端windows 的防火墙,关闭防火墙

4. try。