Re: [PHP] works at command line but not in apache

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [PHP] works at command line but not in apache
Дата
Msg-id 20070318012145.GC12620@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: [PHP] works at command line but not in apache  (Bob Hartung <rwhart@mchsi.com>)
Список pgsql-general
Bob Hartung wrote:
> Thanks, but I have these changes in and it still will not connect:
> file:  pg_hba.conf:
> # IPv4 local connections:
> host    all         all         127.0.0.1/32          ident sameuser

He also wrote:
> >>$db = pg_connect('dbname=bpsimple user=minitwr password=RWHart') ;


The connection string you showed before will not match a "host" entry in
pg_hba.conf.  You need to have a "local" entry, which I think is
something that goes like

local    all    all        ident sameuser

Please check the documentation.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

В списке pgsql-general по дате отправления:

Предыдущее
От: Reece Hart
Дата:
Сообщение: Re: Postgres Database size
Следующее
От: louis gonzales
Дата:
Сообщение: Re: Practical question.