I am using the command psql -U <username> -W
to connect to a Postgres server running on localhost under Ubuntu (via WSL2). After entering the password manually, the command errors out with the message: psql: SCRAM authentication requires libpq version 10 or above
It must be a problem with psql
itself because I am able to connect to the database successfully using the Datagrip application.
What are the steps to fix this?