Re: connection parameters

From: "Scot L(dot) Harris" <webid(at)cfl(dot)rr(dot)com>
To: Dennis Gearon <gearond(at)fireserve(dot)net>
Cc: postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Re: connection parameters
Date: 2004-07-03 16:03:31
Message-ID: 1088870610.7579.3.camel@lathe
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 2004-07-03 at 11:53, Dennis Gearon wrote:
> Please CC me.
>
> When I connect to a database from PHP script called from the web via Apache, running on the same machine as the DB, that's server name "localhost", right?
>
> I can't seem to get a php script to connect with the same parameters that I can use using telnet and 'psql'.
>

You probably need to modify your postgresql.conf file to allow TCP
socket connections and also modify the pg_hba.conf file to permit users
from other IP addresses to connect.

--
Scot L. Harris
webid(at)cfl(dot)rr(dot)com

"The Street finds its own uses for technology."
-- William Gibson

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2004-07-03 19:08:38 username length character limits?
Previous Message Dennis Gearon 2004-07-03 15:53:09 connection parameters