當我嘗試連接到使用User.connection或仿製table.connection我得到這個錯誤PG :: ConnectionBad:FATAL:對等身份驗證失敗,用戶名「的錯誤
PG :: ConnectionBad我PG數據庫:致命:用戶'用戶名'對等身份驗證失敗
我仔細檢查了我的database.yml,它看起來不錯。我認爲問題在於我的pg_bha.conf文件?我現在無法在我的應用程序或我的系統中找到此文件。
的database.yml
development:
adapter: postgresql
encoding: utf8
database: project_development
pool: 5
username:
password:
test: &TEST
adapter: postgresql
encoding: utf8
database: project_test
pool: 5
username: name
password:
production:
adapter: postgresql
encoding: utf8
database: project_production
pool: 5
username: name
password:
cucumber:
<<: *TEST
Thanks for the help.
你可以發佈你的database.yml代碼 – Sontya 2015-02-09 13:56:28