当试图用用户'crm‘连接到Postgresql时,我得到以下错误:
{myname}@{server} etc $ psql --host="10.0.0.129" --username=crm -W -d crm
Password for user crm:
psql: FATAL: no pg_hba.conf entry for host "10.0.0.129", user "crm", database "crm", SSL off问题是,pg_hba.conf文件似乎正好允许这样的组合:
#These are the only uncommented lines in the file
local all all peer
host crm crm 10.0.0.129/32 md5我已经用systemctl重新启动postgres了。有人看到这个配置的问题了吗?
发布于 2017-04-05 21:12:37
实际上,如果您安装了多个版本的postgres,它会为每个版本创建一个单独的数据目录,并为每个目录创建一个单独的pg_hba.conf文件。
https://serverfault.com/questions/842869
复制相似问题