pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: Mark Tessier <mt@open2web.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: db connection fails
Date: Tue, 2 Jul 2002 07:31:12 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGEEPDFDAA.nickf@ontko.com> (raw)
In-Reply-To: <20020701152946.347c987c.mt@open2web.com>


> > Have you tried doing a network connection with your "apache" user? (su -
> > apache; psql -h localhost group3.)
>
> Yes, I've tried it and get the following:
>
> psql: could not connect to server: Connection refused
> 	Is the server running on host 192.168.1.2 and accepting
> 	TCP/IP connections on port 5432?


This is a useful clue. It suggests that your code may be fine and that the
problem is in the networking or authentication setup. (You're using TCP/IP
even if you are on the same box.)

If you haven't already done so, take a look at your pg_hba.conf file. Info
on how to set it up can be found here:

http://www.postgresql.org/idocs/index.php?client-authentication.html

-Nick

--------------------------------------------------------------------------
Nick Fankhauser  nickf@ontko.com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/






view thread (5+ messages)  latest in thread

Message-ID: <NEBBLAAHGLEEPCGOBHDGEEPDFDAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGEEPDFDAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGEEPDFDAA.nickf@ontko.com

 · 

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: nickf@ontko.com, mt@open2web.com
  Subject: Re: db connection fails
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGEEPDFDAA.nickf@ontko.com>
  References: <20020701152946.347c987c.mt@open2web.com> <NEBBLAAHGLEEPCGOBHDGEEPDFDAA.nickf@ontko.com>

* 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