第一步:
连接mysql
mysql -u root -p xxx
第二步:
use mysql;
第三步:
update user set host = "%" where user = "root"
第四步:
flush privileges