use mysql;
update user set host = ‘%‘ where user = ‘root‘;
FLUSH PRIVILEGES;
"Host is not allowed to connect to this MySQL server"
use mysql;
update user set host = ‘%‘ where user = ‘root‘;
FLUSH PRIVILEGES;
"Host is not allowed to connect to this MySQL server"
原文:https://www.cnblogs.com/8386blogs/p/8454190.html