Re: php password authentication failed for user ...

From: Francisco Olarte <folarte(at)peoplecall(dot)com>
To: basti <mailinglist(at)unix-solution(dot)de>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: php password authentication failed for user ...
Date: 2014-07-09 11:47:44
Message-ID: CA+bJJbyEOQ4bXu9FLJ=KQGw0fwY538WwHaCyKtEbb5627j8y5w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi:

On Wed, Jul 9, 2014 at 1:04 PM, basti <mailinglist(at)unix-solution(dot)de> wrote:
> Hello my pg_hab.conf has this entry:
> host all all 127.0.0.1/32 md5
....
> global $dbhost, $dbuser, $dbpass, $dbname, $use_pgsql, $dbconn;
...
> $connect = "host=$dbhost user=$dbuser password=$dbpass
> dbname=$dbname";
...
> When I try to connect via
> psql -U user -h localhost -W database

Which is the value of $dbhost ? is it localhost, to be coherent with
your psql line? ( or the output of the echo you put in the sample
script? )

If $dbhost is not localhost a name which resolves to 127.0.0.1 or a
literal 127.0.0.1 you are not getting in ( if the machine is 3.4.5.6
and you connect to machine.name.com which resolves to 3.4.5.6 your
usually get this kind of problems.

Francisco Olarte.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message basti 2014-07-09 12:01:32 Re: php password authentication failed for user ...
Previous Message hubert depesz lubaczewski 2014-07-09 11:29:44 Re: BAKUP ISSUE