Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
7
Star
3
Fork
36
src-openEuler
/
mariadb
Closed
Code
Issues
13
Pull Requests
1
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
[22.03 SP1] [x86/arm] mariadb授权给远程用户,远程连接服务失败
Done
#I6VFV6
Bug
丁娇
Opened this issue
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 【附件信息】  
环境信息】 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 【附件信息】  
Comments (
4
)
Sign in
to comment
Status
Done
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
赵波
bzhaoop
Assignee
Collaborator
+Assign
+Mention
Labels
sig/DB
Not set
Projects
Unprojected
Unprojected
Milestones
openEuler-22.03-LTS-SP1
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(3)
1
https://gitee.com/src-openeuler/mariadb.git
git@gitee.com:src-openeuler/mariadb.git
src-openeuler
mariadb
mariadb
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register