Search Postgresql Archives

Re: php password authentication failed for user ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 9, 2014 at 6:37 AM, basti <basti@xxxxxxxxxxxxxxxx> 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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux