2013-07-25 24 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檢查後。慶典:ETC/PostgreSQL的/ 8.4 /主/ 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" 
相關問題