FATAL: no pg_hba.conf entry for host
Posted: Mon Mar 07, 2005 2:38 am
All I have is one line of code :
Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host "xxx.xx.xxx.xxx", user "someuser", database "somedb", SSL off in /xx..xx/test.php on line 2
I searched for this and it seems that pg_hba.conf has to be edited (?) and Postgres has to be restarted.
Im doing this on my web host - everything works ok on my PC - so how do I get a wrokaround for this ?
Thanks
Code: Select all
<?php
$test=pg_connect("host=localhost dbname=somedb user=someuser password=somepass");
?>I searched for this and it seems that pg_hba.conf has to be edited (?) and Postgres has to be restarted.
Im doing this on my web host - everything works ok on my PC - so how do I get a wrokaround for this ?
Thanks