作者IsfunHDS (Isfun)
看板Database
标题Re: [SQL ] postgresql 其他台电脑无法连线
时间Tue Mar 23 10:51:17 2010
※ 引述《hirabbitt (兔子)》之铭言:
: 确定有启动postgresql service
: 在
: pg_hba.conf
: 设定了
: host all all xxx.xxx.xxx.xxx/xx trust
: 在
: postgresql.conf
: 也设定了
: listen_addresses = '*'
: 但是却还是跳出错误讯息
: "Error connecting to server 无法连接到伺服器:connection refused
: (0x0000274D/10061)
: 伺服器是否已连结到主机上执行并且准备接受阜号5432上的TCP/IP连线?
: 谢谢
已解决
我後来发现 pg_hba.conf 的地方
每个文字之间 只能有一个 空格 或 tab
如果是为了对齐而按了很多空格 就读不到了
再怎麽设定都会连线拒绝
翻了好多国外文章 他们也都有这个问题
还有人把过程记录下来 但是仍然没有解决
後来我发现连localhost也连不到 把127.0.0.1重打 才知道这个问题
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 163.13.127.81
1F:推 wangks:host all all 127.0.0.1/32 md5 -->OK 03/24 01:03
2F:推 mervynW:linux 没有这个问题, 看来是 win only issue 03/24 12:24