X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 33AA8476493 for ; Wed, 14 May 2003 16:25:10 -0400 (EDT) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with ESMTP id 48644-02 for ; Wed, 14 May 2003 16:25:08 -0400 (EDT) Received: from mail.kzsdabas.sulinet.hu (comp12.kzsdabas.sulinet.hu [195.199.4.12]) by postgresql.org (Postfix) with ESMTP id 09A36476492 for ; Wed, 14 May 2003 16:25:08 -0400 (EDT) Received: from kzsdabas.sulinet.hu (unknown [192.168.0.254]) by mail.kzsdabas.sulinet.hu (Postfix) with ESMTP id 7DD9D89; Wed, 14 May 2003 16:24:15 -0400 (EDT) Message-ID: <3EC2A5EF.30101@kzsdabas.sulinet.hu> Date: Wed, 14 May 2003 22:24:15 +0200 From: =?ISO-8859-1?Q?G=E9mes_G=E9za?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.3) Gecko/20030313 X-Accept-Language: hu, en-us, en MIME-Version: 1.0 To: jie zhang Cc: pgsql-admin@postgresql.org Subject: Re: authentication error References: <3EC29A6F.5080307@best.com> In-Reply-To: <3EC29A6F.5080307@best.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/186 X-Sequence-Number: 8748 jie zhang írta: > Hi, > > I try to connect using psql test from localhost. I got: > FATAL 1: No pg_hba.conf entry for host localhost, user postgres, > database test > > I double checked that I have done the following: > I started server using: postmaster -i -D /var/lib/pgsql/data >logfile > 2>&1 & > > In my pg_hba.conf file I have: > host all 127.0.0.1 255.255.255.0 trust > local all reject > > Are there anything else I need to do ? or anything I did wrong ? > I try to force the connection go through tcp/ip. > Please advice if you can. > thanks in advance, > > Jie > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster Can you connect without a host option if yes then check your postgresql.conf file (should be in the same dir as pg_hba.conf) check for a line tcpip_socket = true if not found write it and then restart the postmaster. Good luck Geza Gemes