首页 文章

获取错误:当试图让pgsql使用rails时,用户“postgres”的对等身份验证失败

提问于
浏览
0

当我尝试使用Rails进行postgres时 .

致命:用户“postgres”的对等身份验证失败

我有9.6版本和9.5 postgresql我记得我创建了一个名为postgresql的用户

for connect with it i do first:
sudo su
su - postgres
psql
\l

我的用户:http://pastebin.com/kKH4qjsr这是我的pg_hba.conf:http://pastebin.com/VnxbQCDW我放入我的项目postgres但我无法连接

1 回答

  • 0

    pg_hba.conf 文件中,使用 trust auth方法而不是 md5

    # IPv4 local connections:
    
    host    all             all             127.0.0.1/32            trust
    

相关问题