centos7环境下在完成mariadb安装后,在端口与防火墙均为正常的情况下,
出现了1130- Host xxx is not allowed to connect to this MariaDb server 的情况。
进入mysql数据库中
MariaDB [(none)]> grant all privileges on *.* to 'root'@'%' with grant option;
进入之后,输入以上代码,目的是将登录的主机设置为全部都能登录
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.13 sec)
重启mariadb server服务,退出数据库
工具连接使用