| From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
|---|---|
| To: | Atul Kumar <akumar14871(at)gmail(dot)com> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, Postgres General <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: error on connecting port 5432 |
| Date: | 2020-12-02 06:14:55 |
| Message-ID: | CAKFQuwb5_XHwRkEqt2WFHDhEDyrb0Mu9mQcQFJr3KdhGbLvnEQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Tuesday, December 1, 2020, Atul Kumar <akumar14871(at)gmail(dot)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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hemil Ruparel | 2020-12-02 06:44:03 | Re: How to debug authentication issues in Postgres |
| Previous Message | Atul Kumar | 2020-12-02 06:03:17 | Re: error on connecting port 5432 |