psql:致命错误:用户“usr”的密码验证失败

时间:2014-03-10 21:04:13

标签: postgresql

我已经在我的服务器上安装了 PostgreSQL ,当我尝试连接数据库时出现此错误(我的密码正确但我收到错误):

[fuiba@web325 webapps]$ psql -h localhost -p 26880 -d univ_db -U usr
Password for user usr: 
psql: FATAL:  password authentication failed for user "usr"

我的pg_hba.conf

# 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

我做错了什么?

0 个答案:

没有答案