missing or erroneous pg_hba.conf file

Lists: pgsql-bugs
From: "qinyan" <12315_qin(at)163(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: missing or erroneous pg_hba.conf file
Date: 2006-05-21 13:07:18
Message-ID: 44706606.0000CA.17193@bj163app40.163.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

你好:

我是 一名中国学生,正在做网格方面的东西,做到最后当我执行命令时,显示如下

2006-05-21 20:19:21,650 ERROR service.ReliableFileTransferImpl
[main,<init>:73]Unable to setup database driver with pooling.A
connection error has occurred: FATAL: missing or erroneous
pg_hba.conf file

2006-05-21 20:19:23,213 WARN service.ReliableFileTransferHome
[main,initialize:97] All RFT requests will fail and all GRAM jobs that
require file staging willfail.A connection error has occurred:
FATAL: missing or erroneous pg_hba.conf file

我知道 这个是说数据库没有连接好,但是pg_hba.conf 文件我已经加了一行

host rftDatabase globus
192.168.0.99/32
18942670 ,而且要求改的

jndi-config.xml ,文件我也将相应的改掉了。

现在数据库连接不上,不知道该怎么办?

请问是什么原因?

期待你们的回复!!!!


From: "William ZHANG" <uniware(at)zedware(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: missing or erroneous pg_hba.conf file
Date: 2006-06-02 10:12:56
Message-ID: e5p2ur$1ed6$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

You'd better use plain text messages in newsgroups.
And you should use English.

Here is the document
http://www.postgresql.org/docs/8.1/interactive/client-authentication.html.
You can try with the lines in "Example 20-1. Example pg_hba.conf entries".
(Your pg_hba.conf is not correct.)

Steps:
1. Fix your pg_hba.conf according to the document mentioned above.
2. Use psql to test if you can connect to the database server.
If not, goto step 1, else goto step 3.
3. Use your application to run tests.

> ""qinyan"" <12315_qin(at)163(dot)com>
> wrote
......

With regards,
William ZHANG