6 Star 2 Fork 28

src-openEuler / mariadb

 / 详情

[22.03 SP1] [x86/arm] mariadb授权给远程用户,远程连接服务失败

待办的
缺陷
创建于  
2023-04-13 16:38

环境信息】
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
【附件信息】
输入图片说明
输入图片说明

评论 (1)

丁娇 创建了缺陷

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 , @陈棋德

openeuler-ci-bot 添加了
 
sig/DB
标签
丁娇 计划截止日期设置为2023-04-14
丁娇 计划开始日期设置为2023-04-13
丁娇 计划截止日期2023-04-14 修改为2023-04-19
丁娇 优先级设置为次要
丁娇 里程碑设置为openEuler-22.03-LTS-SP1
丁娇 修改了描述
丁娇 修改了描述
丁娇 负责人设置为赵波

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/mariadb.git
git@gitee.com:src-openeuler/mariadb.git
src-openeuler
mariadb
mariadb

搜索帮助