欢迎投稿

今日深度:

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

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


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

解决方案:

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

www.htsjk.Com true http://www.htsjk.com/mariadb/30891.html NewsArticle Navicat 连接mysql失败: Host '*' is not allowed to connect to this MariaDB server,navicatmariadb 题描述:Navicat 为管理方便,连接Linux 中MySQL失败,如下如下错误:Host '*' is not allowed to connect to this Mari...
相关文章
    暂无相关文章
评论暂时关闭