install pgAdmin4 (mac m1)
postgresql을 조금 더 편리하게 쓰기 위해 pgAdmin4 를 설치하기로 하였습니다.
다운로드 받아서 설치합니다.
https://www.pgadmin.org/download/
Download
Download pgAdmin is a free software project released under the PostgreSQL licence. The software is available in source and binary format from the PostgreSQL mirror network. Because compiling from source requires technical knowledge, we recommend installing
www.pgadmin.org
pgAdmin4 를 설치하고 실행시키면 서버 연결을 위해 마스터 비밀번호를 치라고 합니다.
몰라서 좌측하단의 초기화시키는 것 같은 것 해서 다시 정합니다.
그 이후 postgres ROLE? USER ? 의 비밀번호를 입력하라고 하는데 나는 이미 이전 brew 를 이용해서 설치했을 때 자동으로 만들어졌었단 말이죠? 그래서 검색했습니다.
brew로 설치했을 경우 현재 로그인된 계정으로 만들어진다, 아래 명령어 써서 하면 된다. 합니다.
그래서 하라는 대로 그냥 터미널에 이렇게 칩니다.
createuser -s postgres
psql: FATAL: role "postgres" does not exist
I'm a postgres novice. I installed the postgres.app for mac. I was playing around with the psql commands and I accidentally dropped the postgres database. I don't know what was in it. I'm curre...
stackoverflow.com
ㅎㅇ