GBase 8c
安装配置
问答

麒麟V10单机部署

发表于2026-07-16 17:31:5920次浏览4个评论

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

【GBase版本】:GBase8cV6_S1.2.0B86_centos7.8_x86_64.tar.gz

【操作系统】:麒麟V10

【CPU】:

【问题描述】*:

我修改了
pg_hba.conf文件,加了这句话host    all             all             192.168.1.0/24      MD5
postgresql.conf文件写加了listen_addresses = '*',然后重启数据库服务.

我执行gsql -d postgres -p 5432 就可以连上如下:
[gbase@kylin06 script]$ gsql -d postgres -p 5432 
gsql ((multiple_nodes GBase8cV6 1.2.0B86 build 989ecc62) compiled at 2026-05-19 15:26:18 commit 0 last mr 3256 )
Non-SSL connection (SSL connection is recommended when requiring high-security)
Type "help" for help.

postgres=#

我执行gsql -d postgres -h 192.168.1.115 -p 5432 -U gbase -W  GBase123就不行如下:
[gbase@kylin06 script]$ gsql -d postgres -h 192.168.1.115 -p 5432 -U gbase -W  GBase123
gsql: FATAL:  Forbid remote connection with trust method!
FATAL:  Forbid remote connection with trust method!

评论

登录后才可以发表评论
GBase用户21143发表于 19天前
报错是 pg_hba.conf 里远程匹配到 trust 认证,库不允许。把 192.168 段 MD5 规则写到配置文件最前面,重载配置即可远程连接。
言吾发表于 8天前
@GBase用户21143:这种也试过了,不行,后来查了资料,GBase8c 出于安全考虑,默认禁止初始管理员用户(如gbase)进行远程连接
用户头像
大力发表于 19天前
FATAL: Forbid remote connection with trust method!感觉就是这里配置得问题先改成别的试试
言吾发表于 8天前
@大力:GBase8c 出于安全考虑,默认禁止初始管理员用户(如gbase)进行远程连接