본문 바로가기

데이터베이스(DB)/PostgreSQL
PostgreSQL 설치 및 환경설정

// 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


- 입력한 패스워드는 꼭 기억해 두어야 한다.

- 설치 시 마지막 Stack ~~ 는 선택 해제한다.

- 설치 후 pgAdmin 4에 접속하여 설정한다.(환경변수 등록 필수!)

    ~ 서버 등록


    ~ 데이터베이스 생성


// DBeaver

- https://dbeaver.io/download/

 

Download | DBeaver Community

Download DBeaver Community 23.1.4 Released on August 7th 2023 (Milestones). It is free and open source (license). Also you can get it from the GitHub mirror. DBeaver PRO 23.1 Released on June 12th, 2023 PRO version website: dbeaver.com Trial version is ava

dbeaver.io


-  데이터베이스 연결


// Spring Boot와 연결

- application.properties 파일에 database 관련 설정 추가

spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/Vue
spring.datasource.username=postgres
spring.datasource.password=12345

'데이터베이스(DB) > PostgreSQL' 카테고리의 다른 글

[PostgreSQL] UUID 생성하기  (0) 2024.03.01
[PostgreSQL] Node.js와 연결하기  (0) 2024.02.28
[PostgreSQL] INTERVAL  (0) 2023.11.15
스프링 부트와 PostgreSQL 연동  (0) 2023.08.14