From: Bruno Wolff III <bruno@wolff.to>
To: jie zhang <jie@best.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: authentication error
Date: Thu, 15 May 2003 11:45:42 -0500
Message-ID: <20030515164542.GA18010@wolff.to> (raw)
In-Reply-To: <3EC1D420.20003@best.com>
References: <3EC1D420.20003@best.com>
On Tue, May 13, 2003 at 22:29:04 -0700,
jie zhang <jie@best.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bruno@wolff.to, jie@best.com
Subject: Re: authentication error
In-Reply-To: <20030515164542.GA18010@wolff.to>
References: <3EC1D420.20003@best.com> <20030515164542.GA18010@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox