Re: error on connecting port 5432

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: error on connecting port 5432
Дата
Msg-id CAKFQuwb5_XHwRkEqt2WFHDhEDyrb0Mu9mQcQFJr3KdhGbLvnEQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: error on connecting port 5432  (Atul Kumar <akumar14871@gmail.com>)
Список pgsql-general
On Tuesday, December 1, 2020, Atul Kumar <akumar14871@gmail.com> wrote:
There is no directory of postgresql in /var/run.

Wasn’t expecting there to be, that’s what you get the error.


Please help me out.

Since “su - postgres” works for psql just do that for createuser.

Or do what Tom said and specify -h /tmp in your commands

It might be interesting to see what “which psql” shows in each case; or whether psql works in the sudo -u case.

David J.

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

Предыдущее
От: Atul Kumar
Дата:
Сообщение: Re: error on connecting port 5432
Следующее
От: Hemil Ruparel
Дата:
Сообщение: Re: How to debug authentication issues in Postgres