Chinaunix

标题: postgresql远程连接的问题 [打印本页]

作者: zhaofus    时间: 2012-06-25 12:01
标题: postgresql远程连接的问题
日志:  无法联接到地址为 "::1", 端口为 113 的 Ident 服务器: 拒绝连接
致命错误:  用户 "postgres" Ident 认证失败
pg_hba.log
作者: zhaofus    时间: 2012-06-25 13:00
# "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         192.168.1.0/24        md5

# IPv6 local connections:
host    all         all         ::1/128               ident
作者: zhaofus    时间: 2012-06-25 15:05
我的pgsql没有设置密码不能是密码错了吧
作者: hmily36    时间: 2012-06-25 15:42
没设置密码是不能登陆的
作者: zhaofus    时间: 2012-06-25 15:43
{:3_184:}  求大神告诉我 怎么设置密码 没用过这个数据库
作者: zhaofus    时间: 2012-06-25 15:49
哈哈谢谢啊
作者: trainee    时间: 2012-06-26 14:50
这个pg_hba.log 被设置为 本机连接 数据库 需要IDENT认证

默认设置是本机连接是信任(无密码)
local   all         all                               trust
# IPv4 local connections:
host    all         all         127.0.0.1/32        trust




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2