X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A8A7A474E4F for ; Fri, 14 Feb 2003 03:08:20 -0500 (EST) Received: from hotmail.com (f57.sea2.hotmail.com [207.68.165.57]) by postgresql.org (Postfix) with ESMTP id E8163474E42 for ; Fri, 14 Feb 2003 03:08:19 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 14 Feb 2003 00:08:20 -0800 Received: from 203.196.161.181 by sea2fd.sea2.hotmail.msn.com with HTTP; Fri, 14 Feb 2003 08:08:20 GMT X-Originating-IP: [203.196.161.181] From: "vivek K." To: pgsql-admin@postgresql.org Subject: No pg_hba.conf entry Date: Fri, 14 Feb 2003 13:38:20 +0530 Mime-Version: 1.0 Content-Type: text/html Message-ID: X-OriginalArrivalTime: 14 Feb 2003 08:08:20.0566 (UTC) FILETIME=[3CD7CF60:01C2D400] X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/217 X-Sequence-Number: 7415
find your postgresql.conf file, look in there to make sure tcpip_socket
= true.

the directory that file is in should be the same as the $PGDATA that
your getting asked for, so you'll be able to do

pg_ctl -D /path/to/database status

Robert Treat 
 
Hello All,
 Thanks to Robert. I have set the above things but SQL-ledger is giving different error this time like :
FATAL 1: No pg_hba.conf entry for host 192.168.168.56, user sql-ledger, database template1
 
  I am using the preinstalled Postgres DB that came along with the default RH Linux Installation. I did not install externally.( so the path will be /usr/bin./usr/lib)
 
I have set the variables as suggested in the postgressql.conf file. But i am now getting this error.
$ pg_ctl  -D  /usr/lib/pgsql start
postmaster successfully started
bash-2.05a$ FATAL 1:  data directory /usr/lib/pgsql has group or world access; p
ermissions should be u=rwx (0700) 
 
and also
bash-2.05a$ initdb
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
initdb: The directory /usr/lib/pgsql exists but is not empty.
If you want to create a new database system, either remove or empty
the directory /usr/lib/pgsql or run initdb with
an argument other than /usr/lib/pgsql. 
 
I have set PGDATA =/usr/lib/pgsql and there is no directory by name data. Should i create a new Directory by name data and initialise this. Please advice.
 
Thank and regards,
Vivek
 
 
 
 


Help STOP SPAM with the new MSN 8 and get 2 months FREE*