严重:用户“ postgres”的密码身份验证失败 [英] FATAL: password authentication failed for user "postgres"

查看:199
本文介绍了严重:用户“ postgres”的密码身份验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ubuntu中获取此错误消息。在pg_hba.conf文件中,我尝试在不同时间使用 ident, peer, trust, md5。

getting this error message in ubuntu. in pg_hba.conf file, I tried using 'ident','peer','trust','md5' in different times.but no go. please help.

推荐答案

在您的pg_hba.conf中

in your pg_hba.conf

# IPv4 local connections:
# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
host    all         all         127.0.0.1/32         trust

如果它不起作用,请尝试

if it does not work then try with

host    all         all         your_ip/32         trust

然后重新启动数据库
会很好

then restart your data base it will work fine

这篇关于严重:用户“ postgres”的密码身份验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆