X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1DF1047698B for ; Thu, 15 May 2003 14:08:15 -0400 (EDT) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with ESMTP id 62578-10 for ; Thu, 15 May 2003 14:07:43 -0400 (EDT) Received: from wolff.to (wolff.to [66.93.249.74]) by postgresql.org (Postfix) with SMTP id 2F820476824 for ; Thu, 15 May 2003 12:44:08 -0400 (EDT) Received: (qmail 18032 invoked by uid 500); 15 May 2003 16:45:42 -0000 Date: Thu, 15 May 2003 11:45:42 -0500 From: Bruno Wolff III To: jie zhang Cc: pgsql-admin@postgresql.org Subject: Re: authentication error Message-ID: <20030515164542.GA18010@wolff.to> Mail-Followup-To: jie zhang , pgsql-admin@postgresql.org References: <3EC1D420.20003@best.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EC1D420.20003@best.com> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/219 X-Sequence-Number: 8781 On Tue, May 13, 2003 at 22:29:04 -0700, jie zhang wrote: > 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 It looks like you are connecting via domain sockets and have not allowed this for any users in pg_hba.conf. You probably want to change the local line to: local all trust > > 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 ? > Please advice if you can. > > thanks in advance, > > Jie > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org