Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ux7hE-0005Vw-82 for pgsql-admin@arkaria.postgresql.org; Thu, 11 Jul 2013 03:37:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ux7hD-00018x-Gs for pgsql-admin@arkaria.postgresql.org; Thu, 11 Jul 2013 03:37:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ux7hC-00018q-O5 for pgsql-admin@postgresql.org; Thu, 11 Jul 2013 03:37:30 +0000 Received: from nm4.bullet.mail.bf1.yahoo.com ([98.139.212.163]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ux7h8-00082D-08 for pgsql-admin@postgresql.org; Thu, 11 Jul 2013 03:37:30 +0000 Received: from [66.196.81.174] by nm4.bullet.mail.bf1.yahoo.com with NNFMP; 11 Jul 2013 03:37:23 -0000 Received: from [98.139.212.236] by tm20.bullet.mail.bf1.yahoo.com with NNFMP; 11 Jul 2013 03:37:23 -0000 Received: from [127.0.0.1] by omp1045.mail.bf1.yahoo.com with NNFMP; 11 Jul 2013 03:37:23 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 583453.28477.bm@omp1045.mail.bf1.yahoo.com Received: (qmail 12773 invoked by uid 60001); 11 Jul 2013 03:37:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1373513843; bh=kykqap9fBqvooDzg96zS+y2gorfmuO76FnPI4WsTF+Q=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mVGQJq5mW6s9yrS6bVfgqo02bc87S2I0P9D7yoBLjIGBU+p6kMTQ4eJOp2a3XlI6goYRxIv/SZH8wyE/lHS8XPGgU+b0xpAOGQm8K3Wai+K04V7xwE4cEr6hWhKkPiohYg7+KZr9rPzFJauj29rRjAmLgsiz4PeFHF96NXoByFU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=HsmvymtmKGqDTgmDcUb50npXQrHw+n+R1oz6zTK54rUxvHQYD1T8aEvJi0z+hbIzxEXBXNcFgXLpJ97tP4rorsPAelSNpKhzL+zuIBEIjyE6qam57r1tdhlZy04TFfM83V/0ZBMNobbwrxJTVfFq+WNMJUA34xBwsYmeqU6ucis= ; X-YMail-OSG: LgurSE8VM1maG7FJbZB5ZrtSqPP_4LeNi5NR3gEg6CR9NOS a0tbbHB5PBxJW8c1zunzUvR9mE29hyCeT0BKX1dkEuDpRPaPTSZLMDAPPUE3 8e9t69oNw7m1zrUL2H4ZVazdlsGPHVMqF9p3yTT_Rc87K4TXJLijGN2ZSasw KOFYnxvJfzxikd197.tRB7qSVfUFL_A3xSx9q_daMn0.soddlBjpP7vamd3M 1EFFuVqLKKT61XS1vFqTXrvWaJhcWw2tzx4eCPz3AYi6Qep1EofzjVYW_dwV L3n5pFuHPtOmDHOb26HLY6Lo0mQVqpiwLAibEG_9zfRAEzgiWi4ZfoGuApeP 59MYUngoA8ujgJNE0741u0.7gClsrT6T9jc7KSG6Ivt8A054k8GXKkaQfayP wVg9jDEJc4bqJgkE6G70alLTP369asUtDohtUCvvDFdLnHxkWFBah06e4gTD GU1D082DQNTC3WGIVgGhsR80pKTkq7aq6HNRP27hmqpdI417z8WHuvTlFGt2 fDpCDsJrBuQSfM.Zktp2EQ6wtt4EY_0xwyLxvRewO7yXR1dO_7SIaQIl7i6W t2_ejbogwSIMfEL4_k3_xuDyh8n3oZrP.7Xy2s5rXWChHXgLVJhAtW7FuuGf vcnPIQGTE66zo7Vn2jp7l9tfOHnJvMvjapg8qRocH7fkYeZ3TZIwBBD17yfR seLVho2DdT5xF1OTDYhgtLZBIGxLMxTcDH9AaJcuX_bR211ckdJQtpv7SRQ- - Received: from [76.255.18.237] by web162902.mail.bf1.yahoo.com via HTTP; Wed, 10 Jul 2013 20:37:23 PDT X-Rocket-MIMEInfo: 002.001, IlN0cnVja2hvZmYsIEtldmluIiA8a3N0cnVja2hvZmZAZWJheS5jb20.IHdyb3RlOgo.IEZyb206IEtldmluIEdyaXR0bmVyIFttYWlsdG86a2dyaXR0bkB5bWFpbC5jb21dCj4.ICJTdHJ1Y2tob2ZmLCBLZXZpbiIgPGtzdHJ1Y2tob2ZmQGViYXkuY29tPiB3cm90ZToKCj4.PiBJJ3ZlIGluc3RhbGxlZCBwb3N0Z3JlcyA5LjIgb24gYSBzZXJ2ZXIsIGNhbGwgaXQgZGIwMS4gSSBub3cgd2FudAo.Pj4gdG8gYWNjZXNzIHBvc3RncmVzIGZyb20gbXkgYXBwIHNlcnZlciwgY2FsbCBpdCBhcHAwMS4KCj4.PiBJdCABMAEBAQE- X-Mailer: YahooMailWebService/0.8.148.557 References: <9EDDE77AB269C54AA685BE1F72B5CA3B0873A4@DEN-EXDDA-S21.corp.ebay.com> <1373495077.98876.YahooMailNeo@web162906.mail.bf1.yahoo.com> <9EDDE77AB269C54AA685BE1F72B5CA3B08757F@DEN-EXDDA-S21.corp.ebay.com> Message-ID: <1373513843.5386.YahooMailNeo@web162902.mail.bf1.yahoo.com> Date: Wed, 10 Jul 2013 20:37:23 -0700 (PDT) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: Connecting to a remote db server To: "Struckhoff, Kevin" , "pgsql-admin@postgresql.org" In-Reply-To: <9EDDE77AB269C54AA685BE1F72B5CA3B08757F@DEN-EXDDA-S21.corp.ebay.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org "Struckhoff, Kevin" wrote: > From: Kevin Grittner [mailto:kgrittn@ymail.com] >> "Struckhoff, Kevin" 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 >=A0=A0=A0=A0=A0=A0=A0=A0 Is the server running locally and accepting >=A0=A0=A0=A0=A0=A0=A0=A0 connections on Unix domain socket "/tmp/.s.PGSQL.= 5432"? Since you didn't specify a host, it's looking on your local machine.=A0 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. --=20 Kevin Grittner EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin