我对Ruby和postgres很新。Rails postgresql数据库连接失败
下面是我的database.yml
development:
adapter: postgresql
database: test_database
username: postgresql
password: mypassword
host: localhost
encoding: utf8
用户存在和我,能够使用phpPgAdmin的相同的凭据登录。但是当我启动rails服务器并转到应用程序的主页时,我得到了FATAL: Ident authentication failed for user "postgresql"
。
编辑:万一pghba.conf事项,
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
#local all all peer
local all postgres md5
local all postgresql md5
谁能请帮助?
可以使用这些凭据登录到命令行客户端吗? – jergason 2012-02-28 23:47:41
您是否重新启动Postgresql服务器?查看我的回答 – 2012-02-28 23:49:01