PostgreSQL一些简单问题以及解决办法
2010-10-25 17:11
375 查看
问题:
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"
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"
相关文章推荐
- centos 7 PostgreSQL一些简单问题以及解决办法
- PostgreSQL一些简单问题以及解决办法
- 11.29编程中遇到的一些问题以及解决办法
- 安装MySQL的一些问题以及解决办法
- 当前知识管理系统的焦点问题以及我的一些解决办法
- urlscheme白名单问题以及项目适配iOS9遇到的一些问题及解决办法
- 在Linux(CentOS6.2)服务器上配置hadoop时遇到的一些问题以及一些解决办法
- 最近网站改版关于IE8兼容的一些问题以及解决办法
- 关于cdh安装过程中的遇见的一些问题以及解决办法的总结
- 使用Postgresql遇到的一些问题和解决办法
- Python: 编程遇到的一些问题以及网上解决办法?
- 【MySQL】JDBC连接MySQL的一些问题以及解决办法
- 白苹果问题解决办法以及原因简单分析
- 【MySQL】JDBC连接MySQL的一些问题以及解决办法
- ssh开发过程中遇到的问题,以及一些解决办法
- JavaWeb中的一些简单操作(四) 页面间的跳转的本质以及url乱码问题解决
- iOS开发中遇到的一些问题以及解决办法总结
- MFC classview类视图消失的解决办法 以及 一些常见的VC 2B问题
- 【angular5项目积累总结】遇到的一些问题以及解决办法
- 练习webpack遇到的一些问题以及解决办法,供自己以后参考