FATAL: no pg_hba.conf entry for host "::1"
2016-03-09 15:20:42 作者:MangoCool 来源:MangoCool
之前集群安装的开源版的Greenplum,在安装gpperfmon-cc-web时候,遇到的问题始终解决不了,于是就暂时放弃了安装。
后来从pivotal公司工程师那里得知,只有商业版的Greenplum才能配合安装gpperfmon-cc-web,这次成功了!
这次这个问题应该是安装gpperfmon-cc-web的最后一个问题了。
在安装gpperfmon-cc-web时,执行设置:
gpcmdr --setup
报错:
Creating instance schema in GPDB. Please wait ...
Failed to setup Command Center instance gpmon: Exception encountered while fetching GPDB version info Connection error for query select version();: FATAL: no pg_hba.conf entry for host "::1", user "gpmon", database "gpperfmon", SSL off
这个问题以前我们也遇到过,在用pgAdminIII连接Greenplum数据库的时候。其实就是连接权限的问题,只要将我们信任的ip加入信任就可以了。
解决办法,在pg_hba.conf中添加:
host all all ::1/128 trust
这个办法比较通用,你也
指定
ip和用户加入信任,这样安全性也更好