pg_hba.conf file

From: hodges(at)xprt(dot)net
To: pgsql-novice(at)postgresql(dot)org
Subject: pg_hba.conf file
Date: 2002-12-05 03:29:07
Message-ID: 3DEE5783.6025.6A76F6@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I am getting this error trying to connect with

Warning: pg_connect() unable to connect to PostgreSQL server: FATAL 1: No
pg_hba.conf entry for host
127.0.0.1, user apache, database tom in /var/www/html/testphp.php on line 3
connection failed!

using
<?php

if (!pg_connect("localhost","5432","tom"))
{echo "connection failed! <br>\n"; exit;}
else
{ echo "connection successful!<br>\n";}
php?>

It is RedHat 8 and apache 2.0.40

Thanks,
Tom

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Ron Johnson 2002-12-05 05:33:56 Re: Yet one more stupid question
Previous Message Devinder K Rajput 2002-12-05 00:32:25 database location problems