Connect error

Поиск
Список
Период
Сортировка
От Russell Shaw
Тема Connect error
Дата
Msg-id 4002BE40.6050908@iprimus.com.au
обсуждение исходный текст
Ответы Re: Connect error  (Bill Moseley <moseley@hank.org>)
Re: Connect error  (Sai Hertz And Control Systems <sank89@sancharnet.in>)
Re: Connect error  ("Rod K" <rod@23net.net>)
Список pgsql-novice
Hi,

I created a database in debian using psql (as database user russell). My php4 script
can't access it. It reports:

   Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL:
       IDENT authentication failed for user "russell" . in /home/russell/public_html/hello.php on line 2

The script is:

   <?php
     $conn=pg_connect("dbname=parts_list user=russell");
     if(!$conn)
       exit(pg_result_error($conn));
   ?>

I have apache-1.3 running ok. In /etc/postgresql/pg_hba.conf, i
have "ident sameuser". I can access the database ok from my user
account using psql. What can i check now?


В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Delete from a table with JOIN
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: date comparison between perl and postgres