Re: php password authentication failed for user ...
От
Scott Marlowe
Тема
Re: php password authentication failed for user ...
Дата
Msg-id
CAOR=d=3xoF1Wx_Nimz4uFJeXJRSiVj-sRs07VktdnTAK0aTTmg@mail.gmail.com
Ответ на
Список
Дерево обсуждения
php password authentication failed for user ... basti <mailinglist@unix-solution.de>
Re: php password authentication failed for user ... Bill Moran <wmoran@potentialtech.com>
Re: php password authentication failed for user ... basti <mailinglist@unix-solution.de>
Re: php password authentication failed for user ... rob stone <floriparob@gmail.com>
Re: php password authentication failed for user ... Adrian Klaver <adrian.klaver@aklaver.com>
Re: php password authentication failed for user ... basti <mailinglist@unix-solution.de>
Re: php password authentication failed for user ... Adrian Klaver <adrian.klaver@aklaver.com>
Re: php password authentication failed for user ... basti <mailinglist@unix-solution.de>
Re: php password authentication failed for user ... Adrian Klaver <adrian.klaver@aklaver.com>
Re: php password authentication failed for user ... Alban Hertroys <haramrae@gmail.com>
Re: php password authentication failed for user ... Francisco Olarte <folarte@peoplecall.com>
Re: php password authentication failed for user ... basti <mailinglist@unix-solution.de>
Re: php password authentication failed for user ... basti <basti@unix-solution.de>
Re: php password authentication failed for user ... Francisco Olarte <folarte@peoplecall.com>
Re: php password authentication failed for user ... Ken Tanzer <ken.tanzer@gmail.com>
Re: php password authentication failed for user ... Scott Marlowe <scott.marlowe@gmail.com>
Re: php password authentication failed for user ... basti <mailinglist@unix-solution.de>
Re: php password authentication failed for user ... Adrian Klaver <adrian.klaver@aklaver.com>
Re: php password authentication failed for user ... basti <mailinglist@unix-solution.de>
Re: php password authentication failed for user ... Adrian Klaver <adrian.klaver@aklaver.com>
Re: php password authentication failed for user ... basti <basti@unix-solution.de>
Re: php password authentication failed for user ... basti <mailinglist@unix-solution.de>
Re: php password authentication failed for user ... Adrian Klaver <adrian.klaver@aklaver.com>
Re: php password authentication failed for user ... Adrian Klaver <adrian.klaver@aklaver.com>
Re: php password authentication failed for user ... basti <mailinglist@unix-solution.de>
Re: php password authentication failed for user ... Adrian Klaver <adrian.klaver@aklaver.com>
Re: php password authentication failed for user ... Marc Mamin <M.Mamin@intershop.de>
Re: php password authentication failed for user ... "Daniel Verite" <daniel@manitou-mail.org>
Re: php password authentication failed for user ... Scott Marlowe <scott.marlowe@gmail.com>
On Wed, Jul 9, 2014 at 5:04 AM, basti wrote:
> Hello my pg_hab.conf has this entry:
>
> host all all 127.0.0.1/32 md5
>
> When I try to use PHP to connect to the Database I get
>
> "postgres password authentication failed for user ..."
>
> The PHP-code looks like
>
>
> global $dbhost, $dbuser, $dbpass, $dbname, $use_pgsql, $dbconn;
>
> if ($use_pgsql)
> {
> $connect = "host=$dbhost user=$dbuser password=$dbpass
> dbname=$dbname";
> echo $connect;
> if (!($dbconn = pg_connect($connect)))
> {
> open_page();
> ErrSQL("Unable to connect to database.");
> }
This is not proper error handling. Use the pg_* functions that report
the actual error, not some string you made on your own.
В списке pgsql-general по дате отправления
От: Edson F. Lidorio
Дата: