关于对连接数据库时出现1130-host “**” is not allowed to connect to this MySql/mariadb server 的错误解决方法
2018-06-20 20:50
891 查看
在完成mariadb的搭建后,在端口与防火墙均为正常的情况下,出现了1130- Host xxx is not allowed to connect to this MariaDb server 的情况。笔者在网络上寻找了许久,最终发现了是因为授权的问题,使得连接权限受阻。所以,我们在这里,只需要进入数据库中,给予其权限即可。具体解决代码如下:[root@localhost ~]# mysql -u root -p
Enter password:#首先进入mysql数据库中MariaDB [(none)]> grant all privileges on *.* to 'root'@'%' with grant option;
Query OK, 0 rows affected (0.15 sec)#进入之后,输入以上代码,目的是将登录的主机设置为全部都能登录MariaDB [(none)]> flush privileges;Query OK, 0 rows affected (0.13 sec)#随后,直接更新服务。或者直接重启mariadb server服务MariaDB [(none)]> exit;
Bye#退出数据库,结束!现在再使用navicat连接使用即可。
相关文章推荐
- MySQL连接登陆数据库错误:Host 'localhost' is not allowed to connect to this MySQL server.解决方法
- mysql连接提示“登录出现1130 is not allowed to connect to this MySql server,解决方法
- 怎么解决mysql不允许远程连接的错误1130 - Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL server“
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题的解决方法
- 两台电脑,不同网段,互相连接数据库Host is not allowed to connect to this MySQL server解决方法
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题,解决方法
- 远程连接mysql 出现: 1130: Host is not allowed to connect to this MySQL server 解决
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题,解决方法
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题,解决方法
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题,解决方法
- 远程连接服务器出现 SQL Error (1130): Host IP is not allowed to connect to this MySQL server 错误
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题,解决方法
- mysql不支持远程连接的解决办法(#1130 - Host 'localhost' is not allowed to connect to this MySQL server)
- 服务器连接错误Host 'XXX' is not allowed to connect to this MySQL server如何解决
- 解决服务器连接错误Host ‘XXX’ is not allowed to connect to this MySQL server
- IT忍者神龟之mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决
- 解决Navicat 报错:1130-host ... is not allowed to connect to this MySql server,MySQL不允许从远程访问的方法
- 解决Navicat 报错:1130-host ... is not allowed to connect to this MySql server,MySQL不允许从远程访问的方法 .
- 解决Navicat 报错:1130-host ... is not allowed to connect to this MySql server,MySQL不允许从远程访问的方法 .
- mysql远程连接错误1130-host ... is not allowed to connect to this MySql server