Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## pg_hba.conf
- # TYPE DATABASE USER CIDR-ADDRESS METHOD
- # "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
- ## command line works
- $ psql -U webapp -W template1 -h localhost
- Password for user webapp:
- psql (9.0.4)
- SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
- Type "help" for help.
- template1=> \q
- ## Why is the error for Ident authentication when the hostname is specified?
- $ cat config/database.yml
- development:
- adapter: postgresql
- encoding: utf8
- database: icecondor_development
- hostname: localhost
- username: webapp
- password: "thepassword"
- $ script/dbconsole
- psql: FATAL: Ident authentication failed for user "webapp"
Add Comment
Please, Sign In to add comment