From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Struckhoff, Kevin <kstruckhoff@ebay.com>
Cc: Kevin Grittner <kgrittn@ymail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Connecting to a remote db server
Date: Wed, 10 Jul 2013 19:06:23 -0400
Message-ID: <20130710230623.GI4941@eldon.alvh.no-ip.org> (raw)
In-Reply-To: <9EDDE77AB269C54AA685BE1F72B5CA3B08757F@DEN-EXDDA-S21.corp.ebay.com>
References: <9EDDE77AB269C54AA685BE1F72B5CA3B0873A4@DEN-EXDDA-S21.corp.ebay.com>
<1373495077.98876.YahooMailNeo@web162906.mail.bf1.yahoo.com>
<9EDDE77AB269C54AA685BE1F72B5CA3B08757F@DEN-EXDDA-S21.corp.ebay.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Struckhoff, Kevin wrote:
> I'm trying to use the psql tool:
>
> /home/postgres->psql test
> psql: could not connect to server: No such file or directory
> Is the server running locally and accepting
> connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
>
> the answer of course is No..
Oh, well, you need to specify the hostname or address of the remote server:
psql -h db01 test
Otherwise, it's just trying to connect to localhost, as you've seen.
You might need to adjust pg_hba.conf on the db01 server to allow
connections from your app01 client host.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: alvherre@2ndquadrant.com, kstruckhoff@ebay.com, kgrittn@ymail.com
Subject: Re: Connecting to a remote db server
In-Reply-To: <20130710230623.GI4941@eldon.alvh.no-ip.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