
pg_hba.conf 파일 수정

pg_hba.conf 파일은 postgresql 설치 위치 > data 폴더 안에 위치
MD5로 되어 있다면 trust로 수정
psql 접속


psql 접속 후 defalt 값으로 엔터를 쳐서 넘어간다.
그럼 postgreSql 설치시 default 권한인 'postgres'로 접속된다.
패스워드 초기화

alter user postgres with password '변경할 패스워드';
명령을 이용해 패스워드를 변경한다.