Reason

os : MAC

 

EDB로 PostgreSQL 설치함

EDB: Open-Source, Enterprise Postgres Database Management

 

EDB: Open-Source, Enterprise Postgres Database Management

 

www.enterprisedb.com

 

비밀번호 설정까지 완료해줬음

 

pgAdmin4로 server register해주려고했는데 아래와 같이 계속 비밀번호 인증 실패함

 

 

Try

검색해보니 mac 사용자들이 초기 비밀번호때문에 문제를 여럿 겪은 듯 하다. 비밀번호 변경하는 방법 등이 있어서 시도를 해보았으나 뭐가 잘 안됨.. 그래서 그냥 삭제하고 brew로 설치하기로 함

 

 

 

 

 

Solution

 

우선 설치 경로로 이동해주면되는데 혹시 설치 경로를 모른다면 아래 방법으로 확인할 수도 있음.

 

mac 시스템 설정 - 사용자 및 그룹 - 네트워크 계정 서버 - 디렉토리 유틸리티 열기… - 디렉토리 편집기 - postgreSQL 검색

하면 정확한 위치를 알 수 있다. 이거 걍 복사해서 쓰면 됨.

 

 

 cd /Library/PostgreSQL/16

 

해당 경로로 이동 후 ls를 확인해보면 uninstall 하는게 있음

 

open uninstall-postgresql.app

 

 

 

next 넘겨서 제거

 

 

install

brew install postgresql

 

postgreSQL 실행

brew services start postgresql

 

설치 잘되었는지 버전 확인

psql -V

 

 

set

postgre 접속

psql postgres

 

role 리스트 확인 (설치시 자동으로 생성된 계정 확인)

/du

 

 

rele name 으로 확인된 이름 넣어주기

\password `role name`

그런 다음 새로 입력할 비밀번호 두번 입력해주면 된다.

아무런 에러 메시지 없으면 잘 변경 된 것.

 

 

데이터 베이스 목록 확인

 

 

아까 삭제하면서 같이 지워진 pgAdmin도 재설치

https://www.pgadmin.org/download/pgadmin-4-macos/

 

Download

pgAdmin 4 (macOS) Download Maintainer: pgAdmin Development Team A macOS App Bundle containing the pgAdmin 4 Desktop Runtime and Web application is available for Intel and Apple Silicon. The following macOS versions are supported: Platform Architecture Firs

www.pgadmin.org

 

 

hostname, port번호 적어주고 위에 터미널에서 확인했던 정보로 database / username 까지 입력하고 변경했던 비밀번호로 입력해주면 성공! 

복사했습니다!