use mysql; select host,user from user; update user set host='%' where user = root; flush privileges; 刷新才有效