Skip site navigation (1) Skip section navigation (2)

Re: trouble with connection

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: trouble with connection
Date: 2009-07-29 10:53:18
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
In response to Didier Gasser-Morlay :
> Where I am confused it that I created in pg_hba.conf an entry
> specifically for  the user webstar
>  local   all         webstar                            md5
> and placed it before
>  local   all         all                                ident sameuser
> This works from the command line to use psql. so, to me it seems to
> say that this works.
> It is only when connecting from php (using pg_connect) that it fails badly.

PHP don't use the local-Method (socket), it connects via tcp/ip. So you
need a host-entry:

host  all  all       x.y.z.y/mask   md5

Replace the x.y.z.y/mask with your CIDR.

Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA

In response to


pgsql-novice by date

Next:From: Andreas WenkDate: 2009-07-29 11:22:15
Subject: Re: trouble with connection
Previous:From: Didier Gasser-MorlayDate: 2009-07-29 10:43:59
Subject: Re: trouble with connection

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group