Skip site navigation (1) Skip section navigation (2)

Re: Connect error

From: Sai Hertz And Control Systems <sank89(at)sancharnet(dot)in>
To: Russell Shaw <rjshaw(at)iprimus(dot)com(dot)au>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Connect error
Date: 2004-01-12 16:44:41
Message-ID: 4002CEF9.4030707@sancharnet.in (view raw or flat)
Thread:
Lists: pgsql-novice
Dear Russell Shaw ,

>   <?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

Bill is correct IDENT  gives me doubt also
To check further do one thing
psql -U <username> -h localhost <database>
If this fails
make sure postgres.conf  has field
Check tcpip_socket is set to true
and
virtual_host is pointing to server's IP

hope this helps

Regards,

Vishal Kashyap

In response to

pgsql-novice by date

Next:From: Rod KDate: 2004-01-12 16:52:41
Subject: Re: Connect error
Previous:From: Bruno Wolff IIIDate: 2004-01-12 16:04:53
Subject: Re: Connect error

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group