修改user表中的Host:update user set Host='%' where User='root';
最后刷新一下:flush privileges;
转载于:https://www.cnblogs.com/c-x-a/p/9492050.html