Re: [despammed] Connection problems with "psql -h localhost <dbName> postgres"

From: Andreas Kretschmer <akretschmer(at)despammed(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: [despammed] Connection problems with "psql -h localhost <dbName> postgres"
Date: 2005-05-02 13:38:53
Message-ID: 20050502133853.GN5962@webserv.wug-glas.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 ===

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Bruno Wolff III 2005-05-02 13:54:32 Re: psql: Is it possible to run a query from a *sql file?
Previous Message Wayne Pierce 2005-05-02 13:03:50 Connection problems with "psql -h localhost <dbName> postgres"