Re: connection fails

From: "Joe Conway" <joseph(dot)conway(at)home(dot)com>
To: <nickf(at)ontko(dot)com>, <paula(at)cyberlazarus(dot)net>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: connection fails
Date: 2001-09-21 21:22:27
Message-ID: 006801c142e3$85db5d80$0ad510ac@jecw2k1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> I'm not a PHP-er, but I notice that a difference between the script that
> works & the one that doesn't is the "host=... portion. Could it be that
> phpPgAdmin & the script that works do *not* use tcpip to connect & while
the
> failing script does?
>
> If so, the message you got also contains the answer- you need to turn the
> tcpip_socket on in the .conf file, or change the first script to not
specify
> a host.
>

You may also have to modify pg_hba.conf (in addition to postgresql.conf).
See the comments in the file for details, but you need a line something
like:

host all 172.16.0.0 255.255.0.0 password

where 172.16.0.0 is replaced by the appropriate network and 255.255.0.0 by
the appropriate netmask.

Hope this helps,

Joe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nick Fankhauser 2001-09-21 21:32:54 Re: connection fails
Previous Message Keary Suska 2001-09-21 20:45:54 Re: connection fails