我所做的:FATAL:對等身份驗證失敗,用戶「店」
sudo -u postgres psql
CREATE ROLE shop CREATEDB LOGIN PASSWORD 'kurt1245';
然後我克隆從GitHub(使用PG Rails應用程序),bundle install
存儲庫,編輯database.yml
寫我的密碼,現在rake db:create
(也setup
和migrate
)不起作用。
database.yml
:
development: adapter: postgresql encoding: unicode database: shop_development pool: 5 username: shop password: kurt1245 test: adapter: postgresql encoding: unicode database: shop_test pool: 5 username: shop password: kurt1245
重複的:http://stackoverflow.com/questions/18664074/getting-error-peer-authentication-failed-for-user-postgres-when-trying-to-ge – Loqman