我正在尝试使用以下设置在 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 是灰色的。