【发布时间】:2012-09-19 05:27:00
【问题描述】:
我正在尝试使用以下设置在 pgadmin3 中注册新服务器:
Name: postgres
Host: localhost
Username: postgres
Password: <password which works for psql>
Service: empty or postgres
但它显示错误:
FATAL: Ident authentification failed for user "postgres"
我已经重启了postgresql服务,但是没有用。
/var/lib/pgsql/data/pg_hba.conf的内容:
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 ident
编辑:工具 -> 服务器配置 -> pg_hba.conf 显示为灰色。
【问题讨论】:
标签: postgresql authentication pgadmin