Re: php password authentication failed for user ...

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: basti <basti(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-10 03:21:39
Message-ID: CAOR=d=0on-D8KTpbfhLuXakUTvFdnLUa7zRLdUEjBnW5dVQUZA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jul 9, 2014 at 6:37 AM, basti <basti(at)unix-solution(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Hanks 2014-07-10 09:01:31 Joining on a view containing a UNION ALL produces a suboptimal plan on 9.3.4
Previous Message Michael Paquier 2014-07-10 02:20:19 Re: BAKUP ISSUE