1:有账号的情况下
use mysql;
update user set Host = '%' where User='root';
flush privileges;
2:无账号的情况下,grant 命令重新创建一个用户
grant all privileges on *.* to root @"%" identified by "root";
flush privileges;
标签:grant,账号,privileges,mysql,开启,flush,root,远程
From: https://www.cnblogs.com/qcy-blog/p/17835475.html