mysql:host is not allowed toconnect to this MySQL server
步骤一:
在安装Mysql数据库的主机上登录root用户:
mysql -u root -p
步骤二:依次执行如下命令:
use mysq;
select host from user where user=‘root’;
可以看到当前主机配置信息为localhost.
步骤三:
执行update user set host = ‘%’ where user ='root’将Host设置为通配...
原创
2019-09-01 00:32:46 ·
151 阅读 ·
1 评论