Re: php password authentication failed for user ... - Mailing list pgsql-general

From Scott Marlowe
Subject Re: php password authentication failed for user ...
Date
Msg-id CAOR=d=0on-D8KTpbfhLuXakUTvFdnLUa7zRLdUEjBnW5dVQUZA@mail.gmail.com
Whole thread Raw
In response to Re: php password authentication failed for user ...  (basti <basti@unix-solution.de>)
Responses Re: php password authentication failed for user ...  (basti <mailinglist@unix-solution.de>)
List pgsql-general
On Wed, Jul 9, 2014 at 6:37 AM, basti <basti@unix-solution.de> wrote:
> I don't know whats wrong there
> host    mydns      mydns        localhost                       trust
> works well and
>
> #host    all         all         0.0.0.0           0.0.0.0           md5
> did not work.
>
> I use Postgres 9.3.4-1.pgdg70+1.
>

PHP should be telling you what you're doing wrong. Look in your logs
etc. For example this code:

<?php
$conn = pg_connect("dbname=smarlowe host=localhost");
?>

on my box gives me this warning:

PHP Warning:  pg_connect(): Unable to connect to PostgreSQL server:
fe_sendauth: no password supplied in /tmp/test.php on line 2


pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BAKUP ISSUE
Next
From: Chris Hanks
Date:
Subject: Joining on a view containing a UNION ALL produces a suboptimal plan on 9.3.4