首页 > 数据库技术 > 详细

Navicat 连接MariaDB 失败: Host '*' is not allowed to connect to this MariaDB server

时间:2019-03-20 10:43:53      阅读:308      评论:0      收藏:0      [点我收藏+]

题描述:Navicat 为管理方便,连接Linux 中Mariadb失败,如下如下错误:Host ‘*‘ is not allowed to connect to this MariaDB server

解决方案:

//允许用户testuser从ip为222.129.1.1的主机连接到mysql服务器,并使用testpassword作为密码
MariaDB [(none)]> grant all privileges on *.* to ‘testuser‘@‘222.129.1.1‘ identified by ‘testpassword‘ with grant option;  
(若是允许所有ip:GRANT ALL PRIVILEGES ON *.* TO ‘testuser’@‘%’ IDENTIFIED BY ‘testpassword’ WITH GRANT OPTION;)
MariaDB [(none)]> flush privileges;   //刷新权限缓存
MariaDB [(none)]> show privileges;
MariaDB [(none)]> show grants for  ‘testuser‘@‘222.129.1.1‘

  

Navicat 连接MariaDB 失败: Host '*' is not allowed to connect to this MariaDB server

原文:https://www.cnblogs.com/fanlong0212/p/10563237.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!