pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rod Taylor <rbt@rbt.ca>
To: bedouglas@earthlink.net
Cc: pgsql-novice@postgresql.org
Cc: pgsql-php@postgresql.org
Subject: Re: [PHP] Accessing Postgres db from apache using PHP
Date: 28 Jul 2003 07:47:26 -0400
Message-ID: <1059392845.8643.23.camel@jester> (raw)
In-Reply-To: <000501c354c4$33708080$0301a8c0@Mesa.com>
References: <000501c354c4$33708080$0301a8c0@Mesa.com>

> my pg_hba.conf looks like:
> # TYPE     DATABASE    IP_ADDRESS    MASK               AUTH_TYPE
> AUTH_ARGUMENT
> 
> #local      all                                          trust
> #host       all         127.0.0.1     255.255.255.255    trust
> 
> # Using sockets credentials for improved security. Not available everywhere,
> # but works on Linux, *BSD (and probably some others)
> 
> #local  all ident   sameuser
> #local   all                                             trust
> #host   all             127.0.0.1       255.255.255.255 trust
> #host   template1       127.0.0.1       255.255.255.255 trust
> host    gforge  127.0.0.1       255.255.255.255 trust
> 
> i've logged into the server as gforge, and tried to do the psql command
> 	-> psql -h localhost gforge
> 
> psql: FATAL 1:  No pg_hba.conf entry for host 127.0.0.1, user gforge,
> database gforge

Your using a 7.2.x database or 7.3.x?

The file segments you have shown look like the 7.2.x format but the
error message looks like something you would get out of a 7.3.x database
(7.3.x added a user portion).

If 7.3.x, try:

# TYPE DATABASE USER    IP-ADDRESS IP-MASK         METHOD
host   gforge   gforge  127.0.0.1  255.255.255.255 trust


If 7.2.x, did you HUP or restart the server after making changes to the
file?

Attachments:

  signature.asc (application/pgp-signature, 186B) download

view thread (13+ messages)  latest in thread

Message-ID: <1059392845.8643.23.camel@jester>
Permalink:  ../1059392845.8643.23.camel@jester/
Also on:    postgresql.org/message-id/1059392845.8643.23.camel@jester

 · 

reply

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-php@postgresql.org
  Cc: rbt@rbt.ca, bedouglas@earthlink.net, pgsql-novice@postgresql.org
  Subject: Re: [PHP] Accessing Postgres db from apache using PHP
  In-Reply-To: <1059392845.8643.23.camel@jester>
  References: <000501c354c4$33708080$0301a8c0@Mesa.com> <1059392845.8643.23.camel@jester>

* 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