自学内容网 自学内容网

navicate远程linux上的pgsql提示密码失败

错误提示:

FATAL: password authentication failed for user “postgres”

解决方案:

1、pg_hba.conf文件中,ipv4下面的内容改成

host    all          all      0.0.0.0/0          md5

2、postgresql.conf文件中,修改listen_addresses

由
#listen_addresses = 'location'
改为
listen_addresses = '*'

3、重启pgsql,例如:systemctl restart pgsql

4、如果问题还在,检查firewalld防火墙,执行

systemctl stop firewalld

5、再次尝试连接,成功!


原文地址:https://blog.csdn.net/shangxiaqiusuo1/article/details/142264783

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!