Re: db connection fails

From: "Nick Fankhauser" <nickf(at)ontko(dot)com>
To: "Mark Tessier" <mt(at)open2web(dot)com>
Cc: "pgsql-admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: db connection fails
Date: 2002-07-02 12:31:12
Message-ID: NEBBLAAHGLEEPCGOBHDGEEPDFDAA.nickf@ontko.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


> > 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(at)ontko(dot)com Phone 1.765.935.4283 Fax 1.765.962.9788
Ray Ontko & Co. Software Consulting Services http://www.ontko.com/

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2002-07-02 13:32:20 Re: pg_dumpall in crontab doesn't work
Previous Message Guthrie, John 2002-07-02 12:09:00 Re: pg_dumpall in crontab doesn't work