postgreSql 초기 패스워드 설정

jina·2022년 9월 14일

postgresql

목록 보기
1/1
post-thumbnail
  1. pg_hba.conf 파일 수정

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

  2. psql 접속


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

  3. 패스워드 초기화

alter user postgres with password '변경할 패스워드'; 

명령을 이용해 패스워드를 변경한다.

0개의 댓글