我得到了一个错误:
FATAL: Peer authentication failed for user "postgres"
当我试图让博士后使用Rails时.
这是我的pg_hba.conf
,database.yml
和dump of the full trace.
我在pg_hba中将身份验证更改为md5,并try 了不同的方法,但似乎都不起作用.
我还try 按照Rails 3.2, FATAL: Peer authentication failed for user (PG::Error)创建一个新用户和数据库
但它们不会出现在pgadmin上,甚至在我跑sudo -u postgres psql -l
的时候也不会出现.
知道我哪里出错了吗?