pg_connect troubles on localhost

From: John Taber <jtaber(at)johntaber(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_connect troubles on localhost
Date: 2005-11-25 01:32:18
Message-ID: 438669A2.1070706@johntaber.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

using postgresql 8.1 on Ubuntu Breezy
I cannot connect to a database I created - checking \du the username is
listed. I also created a password with #ALTER ROLE yyyy WITH PASSWORD
'zzzz' I tried without password but it calls for a password. Any ideas?

<?php
$vhost = 'localhost';
$vname = 'xxxx';
$vuser = 'yyyy';
$vpassword = 'zzzz';
$db_handle = pg_connect("dbname=$vname user=$vuser password=$vpassword");
pg_close($db_handle);
?>

Warning: pg_connect() [function.pg-connect]: Unable to connect to
PostgreSQL server:
FATAL: Ident authentication failed for user "yyyy" in /var/www/test.php
on line 12

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jerry Sievers 2005-11-25 02:39:21 Re: pg_connect troubles on localhost
Previous Message Tino Wildenhain 2005-11-24 23:33:35 Re: tool for DB design