PostgreSQL 连接问题 FATAL: no pg_hba.conf entry for host
2014-01-06 09:04
1086 查看
The server doesn't grant access to the database: the server reports
FATAL: no pg_hba.conf entry for host "192.168.0.123", user "postgres", database "postgres" FATAL: no pg_hba.conf entry for host "192.168.0.123",
user "postgres", database "postgres"
PostgreSQL数据库为了安全,它不会监听除本地以外的所有连接请求,当用户通过JDBC访问是,会报一些如下的异常:
org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host
要解决这个问题,只需要在PostgreSQL数据库的安装目录下找到/data/pg_hba.conf,找到“# IPv4 local connections:”
在其下加上请求连接的机器IP
host all all 127.0.0.1/32 md5
32是子网掩码的网段;md5是密码验证方法,可以改为trust
FATAL: no pg_hba.conf entry for host "192.168.0.123", user "postgres", database "postgres" FATAL: no pg_hba.conf entry for host "192.168.0.123",
user "postgres", database "postgres"
PostgreSQL数据库为了安全,它不会监听除本地以外的所有连接请求,当用户通过JDBC访问是,会报一些如下的异常:
org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host
要解决这个问题,只需要在PostgreSQL数据库的安装目录下找到/data/pg_hba.conf,找到“# IPv4 local connections:”
在其下加上请求连接的机器IP
host all all 127.0.0.1/32 md5
32是子网掩码的网段;md5是密码验证方法,可以改为trust
相关文章推荐
- PostgreSQL 连接问题 FATAL: no pg_hba.conf entry for host
- PostgreSQL 连接问题 FATAL: no pg_hba.conf entry for host
- PostgreSQ 连接问题 FATAL: no pg_hba.conf entry for host
- PostgreSQ 连接问题 FATAL: no pg_hba.conf entry for host
- PostgreSQ 连接问题 FATAL: no pg_hba.conf entry for host
- PostgreSQ 连接问题 FATAL: no pg_hba.conf entry for host
- FATAL: no pg_hba.conf entry for host "::1" odoo10连接postgre navicate连接问题
- PostgreSQ 连接问题 FATAL: no pg_hba.conf entry for host
- PostgreSQ 连接问题 FATAL: no pg_hba.conf entry for host
- Navicat Premium远程连接GP(Greenplum)集群 解决FATAL:no pg_hba.conf entry for host "172.20.20.2"问题
- postgresql Connection to database failed: FATAL: no pg_hba.conf entry for host "10.129.195.161", us
- Greenplum pg_hba.conf entry for host "192.168.2.111", user "gpadmin", database "template1", SSL off
- SQLSTATE[08006] [7] FATAL: no pg_hba.conf entry
- no sys_hba.conf entry for host "192.168.16.28"
- 程序链接PostgreSQL 时报错"no pg_hba.conf entry"
- PostgreSQL远程数据库连接 && PostgreSQL pg_hba.conf 文件简析
- 从pg_hba.conf文件谈谈postgresql的连接认证
- 解决数据库连接报ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)问题
- Unable to connect to PostgreSQL server: FATAL: missing or erroneous pg_hba.conf file\nHINT: See se
- postgresql pg_hba.conf 文件