402 Star 1.4K Fork 1.5K

GVPopenGauss / openGauss-server

 / 详情

使用镜像部署opengauss 默认以host模式启动 但本机不能以pg的方式连接数据库

待办的
咨询
创建于  
2023-08-25 15:51

使用的镜像:enmotech/opengauss:5.0.0

没有对默认内部的hba.conf做设置 容器内部可以使用omm用户登录 (以gsql的方式)

使用docker run --network host 的形式启动容器(忽略一些环境变量)

在宿主机连接数据库报错如下:
[PDOException]
SQLSTATE[08006] [7] FATAL: the local listen ip and port is not for the gsql client

想问一下是否对这个有相关限制?
是否可以使用pg driver的形式在宿主机连接opengauss?

评论 (2)

xiexiuyuan 创建了咨询

Hey @xiexiuyuan, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss_bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.

Hi @xiexiuyuan, please use the command /sig xxx to add a SIG label to this issue.
For example: /sig sqlengine or /sig storageengine or /sig om or /sig ai and so on.
You can find more SIG labels from Here.
If you have no idea about that, please contact with @xiangxinyong , @zhangxubo .

登录 后才可以发表评论

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

搜索帮助