所以我在database.yml
中设置了我的postgrestest:
adapter: postgresql
encoding: unicode
database: startpoint
hostname: localhost
pool: 5
username: postgres
password: password
在终端我一般都会这样做:
psql -h localhous -d startpoint -U postrgres
它将我连接到数据库。
所以我试过了:
test:
adapter: postgresql
encoding: unicode
database: startpoint
hostname: localhost
pool: 5
username: postgres
password:
但是当守卫跑步时我得到:
`initialize': FATAL: Peer authentication failed for user "postgres" (PG::ConnectionBad)
想法?