public inbox for [email protected]  
help / color / mirror / Atom feed
From: Kashif Zeeshan <[email protected]>
To: Narendran .j <[email protected]>
Cc: [email protected]
Subject: Re: Psql not working
Date: Thu, 12 Dec 2024 19:10:33 +0500
Message-ID: <CAAPsdhfTwmrztts1eLXP2N9xRb7KZNxQakaGZPQkm2Y242kK0g@mail.gmail.com> (raw)
In-Reply-To: <CA+-Cqf52mv=mJO8VFsPB3COvOCHKLLvo_jkK=nmfaTt3n2qdug@mail.gmail.com>
References: <CA+-Cqf52mv=mJO8VFsPB3COvOCHKLLvo_jkK=nmfaTt3n2qdug@mail.gmail.com>

Hi

Can you check which user you are using to run psql,

Do the following
1. Execute ls -lrt /usr/pgsql../bin/psql to see if the user have access to
it

2. If you have access then try running the command psql --help to make sure
if you have access to psql.

3. Also try to connect with the wrong user / port to see if psql generates
error.

Regards
Kashif Zeeshan

On Thu, Dec 12, 2024 at 6:31 PM Narendran .j <[email protected]> wrote:

> Hello Team,
>
> I'm facing one problem, can't login postgres by psql, even it's not
> throwing any error and can't find anything in log.
>
> Checked server is running fine, able to check status using pg_ctl. Can
> can't login through psql
>
> My login attempt
>
> psql
> /usr/pgsql-14/bin/psql
> psql -U postgres -p 5432 -d postgres
>
> When I'm running above query it's return to next line, nothing comes up
>
> Please on this.
>
> Thanks
>


view thread (9+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Psql not working
  In-Reply-To: <CAAPsdhfTwmrztts1eLXP2N9xRb7KZNxQakaGZPQkm2Y242kK0g@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox