在我们运行时安装 postgres 之后,正在为我的一个客户端设置服务器 我们遇到以下错误的服务器。当我凝视它时,有一些可用的解决方案,但没有一个对我有用,你能看看它并说出发生了什么吗。
Status: 500 Internal Server Error
FATAL: no pg_hba.conf entry for host "127.0.0.1", user "syr_admin", database "allprosh_production", SSL off
我的 pg_hba.conf 文件:
local all all md5
host samerole all 127.0.0.200 255.255.255.255 pam pamservice=postgresql_cpses
host samerole all 127.0.0.1 255.255.255.255 md5
local all postgres md5
host all postgres 127.0.0.1 255.255.255.255 md5
local all all trust
提前致谢。
最佳答案
我自己弄明白了,虽然花了很长时间。解决方案很简单,我只需在 pg_hba.conf 文件中为该特定用户添加一个条目。这就是我所做的:
local all syr_admin md5
host all syr_admin 127.0.0.1 255.255.255.255 md5
希望这对其他人有帮助...:-)
关于ruby-on-rails - Postgres pg_hba.conf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20392482/