PostgreSQL 로컬 서버 내에서 계정 간 접속
조회 2,540 · 댓글 0
배경
1. PostgreSQL은 postgres라는 계정으로 설치
2. DB 내 ubuntu 계정으로 접속하고자 함
postgres 계정으로,
$ psql -d [db명] -U ubuntu -W
하여 패스워드 넣었으나 에러 발생
/etc/postgresql/10/main/pg_hba.conf 파일에서
1. PostgreSQL은 postgres라는 계정으로 설치
2. DB 내 ubuntu 계정으로 접속하고자 함
postgres 계정으로,
$ psql -d [db명] -U ubuntu -W
하여 패스워드 넣었으나 에러 발생
psql: FATAL: Peer authentication failed for user "ubuntu"
/etc/postgresql/10/main/pg_hba.conf 파일에서
local all ubuntu md5로그인 후 답글을 남길 수 있습니다.