Skip site navigation (1) Skip section navigation (2)

Re: UNABLE TO CONNECT TO A DATABASE IN A WEB SERVER.

From: Tony Day <tonyd(at)panztel(dot)com>
To: JORGE MALDONADO <jorgemal1960(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: UNABLE TO CONNECT TO A DATABASE IN A WEB SERVER.
Date: 2010-05-27 00:00:29
Message-ID: AANLkTikE9-sBrWlP_LG7TrLv4gsrhEk7qAcRJnNb4PGt@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
Hi Jorge

I would perhaps try:

type=hostnossl, database=all, user=all, cidr-address=192.168.1.0/24,
method=trust

Please keep in mind that I am also very much a novice so this is a case of
the "blind trying to lead the blind ..." :-)

Regards, Tony


On Thu, May 27, 2010 at 9:45 AM, JORGE MALDONADO <jorgemal1960(at)gmail(dot)com>wrote:

> I am writing a web app which should connect to a database in a server
> within my personal network but I am having trouble. I get the following
> error message:
>
> There is no record on pg_hba.conf for 192.168.1.77, user postgres, database
> restaurant, SSL inactive.
>
> I have checked the configuration files on the server machine as follows:
> * The listen_addresses parameter in postgresql.conf equals *.
> * The pg_hba.conf has an entry of type=host, database=all, user=all,
> IP-Address=192.168.1.77/32, Password=md5.
>
> I have tried changing the IP-Address to 192.168.1.0/24 and 192.168.0.0/16;
> also I tried Password=Trust and Password=Password.
>
> What else can I check?
>
> Respectfully,
> Jorge Maldonado
>

pgsql-novice by date

Next:From: Joshua TolleyDate: 2010-05-27 02:10:45
Subject: Re: UNABLE TO CONNECT TO A DATABASE IN A WEB SERVER.
Previous:From: JORGE MALDONADODate: 2010-05-26 16:47:03
Subject: UNABLE TO CONNECT TO A DATABASE IN A WEB SERVER.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group