본문 바로가기

개발/SQL

[SQL] postgreSQL 설치 및 설정 / pgAdmin 4

 

 

- postgreSQL 설치

 

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

 

Community DL Page

Note: EDB no longer provides Linux installers for PostgreSQL 11 and later versions, and users are encouraged to use the platform-native packages. Version 10.x and below will be supported until their end of life. For more information, please see this blog p

www.enterprisedb.com

 

- sql shell (psql) 실행

enter X4

설치할 때 입력한 암호 입력

 

- 버전 확인하기

select version();

 

- pgAdmin 4 사용하기

 

경로 : C:\Program Files\PostgreSQL\15\pgAdmin 4\bin

 

 

- 사용자 생성

General > Name 입력

Definition > Password 입력

Privileges - 권한 설정

 

- Database 생성

General > Database 입력

              > Owner 선택

 

 

- 테이블 및 컬럼 생성

Database > Schemas > Tables : 우클릭 > Create > Table

+ 버튼으로 컬럼을 추가해서 만들 수 있음

테이블 생성 이후에는 Columns : 우클릭 > Create > Column 으로 추가 할 수 있음

 

- SQL문 실행하기