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

前端之家收集整理的这篇文章主要介绍了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.f2er.com/postgresql/197049.html

猜你在找的Postgre SQL相关文章