postgreSQL远程连接出现:Error connecting to server :致命错误 SSL关闭的pg_hba.conf记录

转自:http://www.cnblogs.com/Richard-xie/p/3834612.html

解决方案:

[root@www ~]# vi /var/lib/pgsql/data/pg_hba.conf



# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD

# "local" is for Unix domain socket connections only
local   all         all                               ident
# IPv4 local connections:
host    all         all         127.0.0.1/32          ident
host    all         all         10.10.46.1/24          md5           # 新添加
# IPv6 local connections:
host    all         all         ::1/128               ident



 

备注:如出现监听异常,请修改

[root@www ~]# vi /var/lib/pgsql/data/postgresql.conf 



listen_addresses = '*'                  # what IP address(es) to listen on; 移除注释
                                        # comma-separated list of addresses;
                                        # defaults to 'localhost','*' = all
                                        # (change requires restart)
port = 5432                             # (change requires restart) 移除注释
#ssl_renegotiation_limit = 512MB        # amount of data between renegotiations
password_encryption = on          # 移除注释

相关文章

项目需要,有个数据需要导入,拿到手一开始以为是mysql,结果...
本文小编为大家详细介绍“怎么查看PostgreSQL数据库中所有表...
错误现象问题原因这是在远程连接时pg_hba.conf文件没有配置正...
因本地资源有限,在公共测试环境搭建了PGsql环境,从数据库本...
wamp 环境 这个提示就是说你的版本低于10了。 先打印ph...
psycopg2.OperationalError: SSL SYSCALL error: EOF detect...