:FATAL:ピア認証は、ユーザーのために失敗しました「店」私がやったこと
sudo -u postgres psql
CREATE ROLE shop CREATEDB LOGIN PASSWORD 'kurt1245';
それから私は今、自分のパスワードを書いて、ためにdatabase.yml
を編集し、GitHubの(PGを使用してRailsアプリケーション)、bundle install
からリポジトリをクローン化しました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