我最近安装了postgresql 9.1和pgadmin3。但我无法连接到我与此配置创建的服务器:pgadmin3服务器连接和身份验证错误
name: mydb
host: 127.0.0.1
port: 5432
service:
Maintenance DB: postgres
username: postgres
password: *
根据类似的问题我已经把我的/etc/postgresql/9.1/main/pg_hba.conf
文件ubuntu下12.04 LTS是这样的:
local all postgres md5
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
host all all localhost trust
但是,当我要连接到我得到这个错误服务器:
Error connecting to the server: FATAL: password authentication failed for user "postgres"
FATAL: password authentication failed for user "postgres"
您是什么时候创建用户'postgre'并为其分配密码的? –