pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@ymail.com>
To: Struckhoff, Kevin <kstruckhoff@ebay.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Connecting to a remote db server
Date: Wed, 10 Jul 2013 20:37:23 -0700 (PDT)
Message-ID: <1373513843.5386.YahooMailNeo@web162902.mail.bf1.yahoo.com> (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" <kstruckhoff@ebay.com> wrote:
> From: Kevin Grittner [mailto:kgrittn@ymail.com]
>> "Struckhoff, Kevin" <kstruckhoff@ebay.com> wrote:

>>> I've installed postgres 9.2 on a server, call it db01. I now want
>>> to access postgres from my app server, call it app01.

>>> It seems that something else is missing or needs to be done.

>> How are you trying to connect, and what happens when you try?

> 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"?

Since you didn't specify a host, it's looking on your local
machine.  What happens if you run?:

psql -h app01 test

You can look at the connection options by running:

psql --help

... or by reading the docs:

http://www.postgresql.org/docs/current/interactive/app-psql.html

... or by using the man page, if available.

By the way, I believe that most server distributions include all
the client software, but you could probably find a client-only
package on most platforms.

-- 
Kevin Grittner
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (12+ messages)

Message-ID: <1373513843.5386.YahooMailNeo@web162902.mail.bf1.yahoo.com>
Permalink:  ../1373513843.5386.YahooMailNeo@web162902.mail.bf1.yahoo.com/
Also on:    postgresql.org/message-id/1373513843.5386.YahooMailNeo@web162902.mail.bf1.yahoo.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: kgrittn@ymail.com, kstruckhoff@ebay.com
  Subject: Re: Connecting to a remote db server
  In-Reply-To: <1373513843.5386.YahooMailNeo@web162902.mail.bf1.yahoo.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