1130, "Host 'xxxx' is not allowed to connect to this MySQL server"

墨蓝 2021-12-21 01:37 339阅读 0赞

centos安装好mysql后远程登录mysql报出了这个错误

解决办法:

  1. 先查看数据库的权限信息
    use mysql; select host,user from user;
  2. 需要把host改成所有update user set host = '%' where user = 'root'; flush privileges;

重新登录即可

发表评论

表情:
评论列表 (有 0 条评论,339人围观)

还没有评论,来说两句吧...

相关阅读