1
i159@i159-desktop:~$ psql -U geouser -W -d deodb
Password for user geouser: 
psql: FATAL:  password authentication failed for user "geouser"
FATAL:  password authentication failed for user "geouser"

在此之后我签入/etc/postgresql/8.4/main/pg_hba.conf

执行上述命令时出现此错误:

bash: etc/postgresql/8.4/main/pg_hba.conf: No such file or directory

我怎样才能解决这个问题?

4

1 回答 1

1

没有这个文件 PostgreSQL 不会启动 - 所以 pg_hba.conf 应该存在于你的服务器上。

该文件通常在数据目录中-您可以尝试

sudo su postgres
psql postgres -c "显示 hba_file"
于 2013-07-25T16:01:57.087 回答