Database/PostgreSQL

[PostgreSQL] psql: SCRAM authentication requires libpq version 10 or above 오류 해결하기

꽁담 2023. 3. 29. 17:41

 

 

 

PostgreSQL 에 접속할 때 아래의 오류가 발생했다.

psql: SCRAM authentication requires libpq version 10 or above

 

이러한 오류는 psql 버전이 10 미만이기 때문이다.

PostgreSQL 13 버전인가 부터는 클라이언트가 10 버전 이상이어야 한다.

# psql --version
psql (PostgreSQL) 9.2.24

 

다른 많은 블로그에서 우분투 환경으로

yum 이나 apt 로 패키지를 다운받아서 하는 방법을 가이드 하고 있지만,

 

나의 환경은 Amazon Linux 이기 때문에 이 명령어로 설치가 가능하다.

# amazon-linux-extras install postgresql10

 

psql 클라이언트 버전이 변경되고  postgres 에도 접속했다.

# psql --version
psql (PostgreSQL) 10.21

# psql -h  -U  -d  -W
Password for user : 
psql (10.21, server 14.6)
WARNING: psql major version 10, server major version 14.
         Some psql features might not work.
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES128-GCM-SHA256, bits: 128, compression: off)
Type "help" for help.

postgres=>