Re: error on connecting port 5432 - Mailing list pgsql-general

From David G. Johnston
Subject Re: error on connecting port 5432
Date
Msg-id CAKFQuwb5_XHwRkEqt2WFHDhEDyrb0Mu9mQcQFJr3KdhGbLvnEQ@mail.gmail.com
Whole thread Raw
In response to Re: error on connecting port 5432  (Atul Kumar <akumar14871@gmail.com>)
List 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 by date:

Previous
From: Atul Kumar
Date:
Subject: Re: error on connecting port 5432
Next
From: Hemil Ruparel
Date:
Subject: Re: How to debug authentication issues in Postgres