Re: trouble with connection
От | A. Kretschmer |
---|---|
Тема | Re: trouble with connection |
Дата | |
Msg-id | 20090729105318.GC28314@a-kretschmer.de обсуждение исходный текст |
Ответ на | Re: trouble with connection (Didier Gasser-Morlay <didiergm@gmail.com>) |
Ответы |
Re: trouble with connection
|
Список | 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 -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
В списке pgsql-novice по дате отправления: