Re: could not connect via psql to 9.4 version

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: could not connect via psql to 9.4 version
Дата
Msg-id CAMkU=1wwn0bLcXVhWcaPLr8=ZecQwY1yK8i0h419r7vn7b_+YQ@mail.gmail.com
обсуждение исходный текст
Ответ на could not connect via psql to 9.4 version  (Murali Paramu <ipmurali@gmail.com>)
Ответы Re: could not connect via psql to 9.4 version  (zurich@nym.hush.com)
Re: could not connect via psql to 9.4 version  (abbas alizadeh <ramkly@yahoo.com>)
Список pgsql-admin
On Thu, Feb 13, 2020 at 11:23 AM Murali Paramu <ipmurali@gmail.com> wrote:
Hello Team,
I have two versions of PostgreSQL 9.4 and 12.1
both servers can be connected through pgAdmin.
But through psql I can connect only to 12.1

when i connect to 9.4 got below error:
$ psql -U postgres -p 5432
psql: error: could not connect to server: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?



Perhaps 9.4 is configured to put its socket file in /tmp instead of  /var/run/postgresql/.  You can try -h /tmp, or you can just always use -h 127.0.0.1, then you don't need to worry where the socket file is.

Cheers,

Jeff 

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: could not connect via psql to 9.4 version
Следующее
От: zurich@nym.hush.com
Дата:
Сообщение: Re: could not connect via psql to 9.4 version