개발로 자기계발
article thumbnail
728x90
구분 SQLITE DBMS Product
서버 메모리 or 로컬 디스크 / 필요없음 서버, 포트 / 필요있음
동시 접속 처리 한 번에 하나 가능
데이터 유형 5가지 데이터 유형만 가능 모든 유형의 데이터 저장 가능
설치 메모리 작은 메모리 큰 메모리
장점 경제성, 효율성, 단순성 등 확장성, 동시성 등
데이터 양 소, 중에 적합 대용량에 적합
보안 기능 없음 있음
속도 빠름 Sqlite에 비해선 떨어짐
오픈 소스 O O

※ DBMS(DataBase Management System): 데이터베이스 관리 시스템

 

 

1. PostgreSQL 소개

정의 ORDMBS(오픈 소스 객체 - 관계형 데이터베이스 관리 시스템)
관계형 DB로서 데이터 저장, 액세스 및 성능에 대한 관리
구조 클라이언트 / 서버 모델을 사용
기능 트랜잭션, ACID(Atomicity, Consistency, Isolation, Durability)
특징 1. Windows, Linux, MAC 등 여러 플랫폼 지원
2. 대용량 처리
3. DB 보안 기능(암호화, 접근 제어, 감시)

https://mangkyu.tistory.com/71

 

 

2. PostgreSQL 설치(Windows / Mac)

 

Windows

https://www.enterprisedb.com/downloads/postgres-postgresql-downloads

 

Download PostgreSQL

PostgreSQL Database Download

www.enterprisedb.com

PostgreSQL 다운로드(원하는 버전에 맞게)

  1. 모든 항목 체크하면서 Next
  2. 관리자 비밀번호 설정
  3. PostgreSQL을 사용할 포트 설정(기본 5432)
  4. 클러스터 별다른 지정 없다면 default
  5. (Stack Builder) 추가 도구 설치 or Exit => 배포툴킷 같은 거 사용하고 싶을 때 다운
  6. (추가 도구 설치한 다면)앞서 설정한 (5432) 포트에 도구 설치
  7. 확장 툴 목록 확인(설치 할께 없다면 Cancel)

※ Spatial Extensions >>> PostGIS(공간 연산) 유용함

 

 

3. pgAdmin 4 실행

PostgreSQL 15 폴더 >> pgAdmin 4

or

시작프로그램 검색 >> pgAdmin 4

설치할 때 설정 했던 패스워드 입력

 

왼쪽에 Servers 더블클릭 후 암호 입력

 

현재 PostgreSQL 상태를 볼 수 있다.


Mac

https://postgresapp.com/

 

Postgres.app – the easiest way to get started with PostgreSQL on the Mac

Postgres.app is a full featured PostgreSQL installation packaged as a standard Mac app.

postgresapp.com

 

자기가 원하는 버전에 맞게 설치

 

Initialize 클릭

 

이후 터미널 접속

 

sudo mkdir -p /etc/paths.d &&
echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp

터미널에 복사 붙여 넣기

 

컴퓨터 비밀번호 입력

 

Mac Admin 다운

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 macOS 10.15 and above. Info Nightly snapshot builds generated from the head of the master branc

www.pgadmin.org

원하는 버전에 맞는 어드민 설치 >> pgadmin-4-xxx.dmg 클릭

 

설치 후 응용프로그램에 복사 저장

 

터미널에 쳤던 비밀번호와 동일하게 치면 어드민 접속 완료!

728x90
SMALL
profile

개발로 자기계발

@김잠봉

틀린부분이나 조언이 있다면 언제든 환영입니다:-)