pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Wang Jun <daxiawj@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: [Re]:User Admin in pgsql
Date: Wed, 15 Dec 2004 09:59:43 -0700
Message-ID: <20041215165943.GA1266@winnie.fuhr.org> (raw)
In-Reply-To: <1103114537.8185.9.camel@localhost.localdomain>
References: <1103114537.8185.9.camel@localhost.localdomain>

On Wed, Dec 15, 2004 at 08:42:17PM +0800, Wang Jun wrote:

> I have modified my pg_hda.conf as the DOC said, and I can login with my
> password use "psql" in terminal. But it still remains a problem that I
> can't acess to my database through webclients such as PhpPgAdmin and my
> other phpclient.

What's the exact error message?  What's different between the psql
connections and the PHP connections?  One possibility is that psql
is using a local (Unix socket) connection and PHP is using a host
(TCP/IP) connection, and the server isn't accepting TCP/IP connections
on the required interface.  Have you looked at the tcpip_socket and
virtual_host settings in postgresql.conf?  Be sure to restart
PostgreSQL if you change anything.

The "Client Authentication" and "Server Run-time Environment"
chapters of the documentation describe how to configure pg_hba.conf
and postgresql.conf.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



view thread (4+ messages)

Message-ID: <20041215165943.GA1266@winnie.fuhr.org>
Permalink:  ../20041215165943.GA1266@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20041215165943.GA1266@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mike@fuhr.org, daxiawj@gmail.com
  Subject: Re: [Re]:User Admin in pgsql
  In-Reply-To: <20041215165943.GA1266@winnie.fuhr.org>
  References: <1103114537.8185.9.camel@localhost.localdomain> <20041215165943.GA1266@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox