所以我在 database.yml 中设置了我的 postgres
test:
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)
想法?