Обсуждение: upgrading postgres from 7.0 to 7.1

Поиск
Список
Период
Сортировка

upgrading postgres from 7.0 to 7.1

От
pvissenb@csc.com (Pieter Vissenberg)
Дата:
Dear all,

I upgraded my PostgreSQL installation using Redhat's RPM.
I believe the start up script in /etc/rc.d/init.d has not
been changed.
The postmaster seems to be running smoothly (psql session
works fine).
However when I try to connect to the database via Apache
with PHP, I get an errormessage in the style of
'pconnect() failed. Is the postmaster (with -i) running
and listening to port 5432 ?'

When I run phpinfo(), Psql is still mentionned, so I did
not install any new version of PHP, or PHP-pgsql*.rpm.

Has anyone experienced the same problem? How could I solve
this?

many thanks,

Pieter Vissenberg

Re: upgrading postgres from 7.0 to 7.1

От
"Chad R. Larson"
Дата:
On Mon, Jul 02, 2001 at 11:52:47PM -0700, Pieter Vissenberg wrote:
> The postmaster seems to be running smoothly (psql session works
> fine).  However when I try to connect to the database via Apache
> with PHP, I get an errormessage in the style of 'pconnect()
> failed.  Is the postmaster (with -i) running and listening to port
> 5432 ?'

Does "pg_ctl status" indicate that the postmaster is running with
the "-i" switch?  That is needed for the postmaster to accept TCP/IP
connections.

Then check the contents of your pg_hba.conf file in your $PGDATA
directory.  It should have an entry for the host from which you're
connecting.  For example, if you're running the Apache server on the
same machine as the database engine, a line like:

    local all trust

would suffice.

         -crl
--
Chad R. Larson (CRL22)    chad@eldocomp.com
  Eldorado Computing, Inc.   602-604-3100
     5353 North 16th Street, Suite 400
       Phoenix, Arizona   85016-3228