当我尝试使用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 回答
在
pg_hba.conf
文件中,使用trust
auth方法而不是md5
: