当试图用用户'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。 有没有人看到这个configuration的问题?
那么,事实certificate,如果你已经安装了多个版本的postgres,它会为每个版本创build一个单独的数据目录,每个目录都有一个单独的pg_hba.conf文件。