일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- inflearn
- dbeaver
- GA4
- 머신러닝 입문 강좌 | TEAMLAB X Inflearn |
- 양승화
- EXCEPT
- search ads
- 티스토리챌린지
- postgresql
- Def
- preprocessing
- 파이썬 코딩 무료 강의 (기본편) - 6시간 뒤면 여러분도 개발자가 될 수 있어요 [나도코딩]
- 오블완
- 외장함수
- 디지털 검색광고
- 숫자형
- google sa
- pgAdmin
- b2b 마케팅
- sql
- 검색광고 캠페인
- 퍼포먼스 마케팅
- 파이썬
- 데이터 전처리
- ndarray
- dvdrental
- MAC
- 문자열 함수
- Pickle
- PYTHON
- Today
- Total
Maron's DATA Log
[Mac-PostgreSQL] Homebrew 이용해 PostgreSQL 설치 및 삭제 본문
1. Homebrew 이용해 PostgreSQL 설치하기
Terminal 에서
#homebrew 업데이트
brew update
#PostgreSQL 설치
brew install postgresql
#PostgreSQL 서비스 시작
pg_ctl -D /usr/local/var/postgres start && brew services start postgresql
#서비스 실행 확인
postgres -V
psql (13.0)
postgres=# \du
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------------------+-----------
maron | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
postgres=# quit
#PostgreSQL 접속
psql postgres
2. PostgreSQL 삭제하기
Terminal 에서
#PostgreSQL 삭제(uninstall)
sudo /Library/PostgreSQL/10/uninstall-postgresql.app/Contents/MacOS/uninstall-postgresql
#PostgreSQL user 제거
System Preference > userse & Groups > Unlock > remove postgresql user by clicking "-"
#databases 삭제
rm -rf /usr/local/var/postgres/*
'SQL' 카테고리의 다른 글
[SQL] 데이터 조회 - SELECT (0) | 2020.11.12 |
---|---|
[Mac-PostgreSQL] DBeaver (0) | 2020.11.12 |
[PostgreSQL] Reference websites (0) | 2020.11.12 |
[Mac-PostgreSQL] psql & pgAdmin 이용해 Sample DB (dvdrental.tar) 연결하기 (0) | 2020.11.12 |
[Mac-PostgreSQL] psql & pgAdmin 4 설치 및 실행 (0) | 2020.11.12 |