微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

PostgreSQL一些简单问题以及解决办法

问题: org.postgresql.util.PsqlException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. 解决办法:Edit /var/lib/pgsql/data/postgresql.conf file Change #listen_addresses = 'localhost' to listen_addresses = '*' 问题: org.postgresql.util.PsqlException: FATAL: no pg_hba.conf entry for host "<host_ip>",user "fkong",database "fkong",SSL off 解决办法: Edit /var/lib/pgsql/data/pg_hba.conf file Add below line under "# IPv4 local connections:" "host all all <host_ip>/32 password" 问题: org.postgresql.util.PsqlException: FATAL: Ident authentication Failed for user "fkong" 解决办法: Edit /var/lib/pgsql/data/pg_hba.conf file Change "host all all <host_ip>/32 ident" to "host all all <host_ip>/32 password"

原文地址:https://www.jb51.cc/postgresql/197049.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐