Re: [despammed] Connection problems with "psql -h localhost postgres" - Mailing list pgsql-novice

From Andreas Kretschmer
Subject Re: [despammed] Connection problems with "psql -h localhost postgres"
Date
Msg-id 20050502133853.GN5962@webserv.wug-glas.de
Whole thread Raw
In response to Connection problems with "psql -h localhost postgres"  (Wayne Pierce <shalofin@gmail.com>)
Responses Re: [despammed] Connection problems with "psql -h localhost postgres"  (Wayne Pierce <shalofin@gmail.com>)
List pgsql-novice
am  02.05.2005, um  9:03:50 -0400 mailte Wayne Pierce folgendes:
> I have PostgreSQL setup and everything is working fine when I use
> "psql -d <dbName>" on the command line or when I use mod_python to
> connect.  However I when I use "psql -h localhost <dbName> postgres" I
> get the following error:
>
> psql: could not connect to server: Connection refused
>         Is the server running on host "localhost" and accepting
>         TCP/IP connections on port 5432?
>
> I have the following lines in my pg_ident.conf and pg_hba.conf files:

PG does not listen on TCP.

Set in /etc/postgresql/postgresql.conf

tcpip_socket = true


Andreas
--
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47212,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    ===

pgsql-novice by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: psql: Is it possible to run a query from a *sql file?
Next
From: Bruno Wolff III
Date:
Subject: Re: how to make collation work