【发布时间】:2013-11-06 07:19:44
【问题描述】:
我使用 PostgreSQL 9.2 并有命令:
psql -h localhost -U testdb -d postgis
此命令可以在没有密码的情况下连接数据库。我想输入密码。
我的pg_hba.cconf 是:
local all all password
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
【问题讨论】:
-
你修改配置文件后重启服务器了吗?
-
@IgorRomanchenko: A reload should suffice.
标签: database linux postgresql authentication