环境信息】
NAME="openEuler"
VERSION="22.03 (LTS-SP1)"
ID="openEuler"
VERSION_ID="22.03"
PRETTY_NAME="openEuler 22.03 (LTS-SP1)"
ANSI_COLOR="0;31"
【软件版本】
mariadb-server-4:10.5.16-2.oe2203sp1
【前置条件】
机器A和机器B关闭防火墙
机器A和机器B安装mariadb-server并启动服务
【问题复现步骤】
机器A:
netstat -anp | grep 3306,查看到mysql正在监听3306端口
分配权限给远程用户:
MariaDB [(none)]> grant all privileges on . to 'root'@'ip_B' IDENTIFIED BY 'ip_B_passwd' WITH GRANT OPTION;
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]> exit
机器B:
机器B远程连接mariadb:
mysql -h ip_A -u root -p ip_A_passwd
出现概率(是否必现,概率性错误):必现
【预期结果】
连接成功
【实际结果】
ERROR 1130 (HY000): Host '_gateway' is not allowed to connect to this MariaDB server
【附件信息】
Hi ding-jiao, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: DB, and any of the maintainers: @ZhengZhenyu , @陈棋德
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论