Re: Connecting to a remote db server

Поиск
Список
Период
Сортировка
От javmendez1@gmail.com
Тема Re: Connecting to a remote db server
Дата
Msg-id 1230455050-1373498402-cardhu_decombobulator_blackberry.rim.net-1058509082-@b27.c8.bise6.blackberry
обсуждение исходный текст
Ответ на Re: Connecting to a remote db server  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: Connecting to a remote db server  ("Struckhoff, Kevin" <kstruckhoff@ebay.com>)
Список pgsql-admin
Review the postgresql.conf and chek the "listen_adress" parameter. 

listen_adress="localhost"

Change localhost by *

Example: listen_adress="*"

Este mensaje ha sido enviado gracias al servicio BlackBerry de Movilnet

-----Original Message-----
From: Alvaro Herrera <alvherre@2ndquadrant.com>
Sender: pgsql-admin-owner@postgresql.orgDate: Wed, 10 Jul 2013 19:06:23 
To: Struckhoff, Kevin<kstruckhoff@ebay.com>
Cc: Kevin Grittner<kgrittn@ymail.com>; pgsql-admin@postgresql.org<pgsql-admin@postgresql.org>
Subject: Re: [ADMIN] Connecting to a remote db server

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

В списке pgsql-admin по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Connecting to a remote db server
Следующее
От: javmendez1@gmail.com
Дата:
Сообщение: Re: Connecting to a remote db server