2013-07-25 3 views
1
[email protected]:~$ 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 : 해당 파일이나 디렉토리가 없습니다.

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

가 어떻게이 문제를 해결할 수 있습니다

이 때 위의 명령을 실행하면이 오류가 무엇입니까 무엇입니까?

답변

1

이 파일이 없으면 PostgreSQL이 시작되지 않으므로 pg_hba.conf가 서버에 존재해야합니다.

이 파일은 일반적으로 데이터 디렉토리에있다 - 당신이 시도 할 수

 
sudo su postgres 
psql postgres -c "show hba_file" 
관련 문제