필자는 Rails 애플리케이션 용 PostgreSQL을 사용합니다. pgAdmin와 콘솔을 통해 PostgreSQL 서버에위한 인증이 성공,하지만 난 레일 응용 프로그램을 실행할 때 다음과 같은 오류 얻을 :PostgreSQL 사용자 인증 오류
FATAL: Peer authentication failed for user "postgres"
내 database.yml
:
development:
adapter: postgresql
encoding: unicode
database: app_dating
pool: 5
timeout: 5000
username: postgres
password: '123456'
pg_hba.conf
:
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
나는 Rails 4.0.1과 PotgreSQL 9.1을 사용한다.
http://stackoverflow.com/questions/2942485/psql-fatal-ident-authentication-failed-for-user-postgres – Santhosh