From: | Kevin Grittner <kgrittn(at)ymail(dot)com> |
---|---|
To: | "Struckhoff, Kevin" <kstruckhoff(at)ebay(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Connecting to a remote db server |
Date: | 2013-07-11 03:37:23 |
Message-ID: | 1373513843.5386.YahooMailNeo@web162902.mail.bf1.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
"Struckhoff, Kevin" <kstruckhoff(at)ebay(dot)com> wrote:
> From: Kevin Grittner [mailto:kgrittn(at)ymail(dot)com]
>> "Struckhoff, Kevin" <kstruckhoff(at)ebay(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Wells Oliver | 2013-07-11 17:44:32 | Building an extension for a different version of Postgres |
Previous Message | Struckhoff, Kevin | 2013-07-11 00:00:01 | Re: Connecting to a remote db server |