๐Ÿ’ซ JDBC

โœ”๏ธ Postgres ์„ค์น˜

postgre๋ฅผ ์„ค์น˜ํ•˜๊ธฐ ์œ„ํ•ด์„œ ๋จผ์ € ๋งฅ์˜ homebrew๊ฐ™์€ ํ”„๋กœ๊ทธ๋žจ์ธ chocolatey๋ฅผ ์„ค์น˜ํ•œ๋‹ค.

โœ… chocolatey ์„ค์น˜

Try it now ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜๋ฉด installing chocolatey ํ™”๋ฉด์ด ๋‚˜์˜จ๋‹ค.

โœ… Install Chocolatey for Individual Use

  1. powershell ๊ด€๋ฆฌ์ž๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰
  2. command ๋ถ™์—ฌ๋„ฃ๊ธฐ
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

โœ… ์„ค์น˜ํ™•์ธ
cmd ์—ด์–ด์„œ choco --version ์ž…๋ ฅ

C:\Users\juyou>choco --version
2.4.3

โœ… Postgre ์„ค์น˜

chocolatey๊ฐ€ ์„ค์น˜๋˜๋ฉด powershell์—์„œ ๊ณ„์† ์ž…๋ ฅํ•˜๋ฉด ๋œ๋‹ค.

choco install postgresql

์„ค์น˜๊ฐ€ 20๋ถ„๋„˜๊ฒŒ ๊ฝค ์˜ค๋ž˜๊ฑธ๋ ธ์œผ๋‹ˆ ๋„‰๋„‰ํ•œ ๋งˆ์Œ์„ ์ค€๋น„ํ•˜์ž..

โœ”๏ธ Postgres ๋กœ๊ทธ์ธํ•˜๊ธฐ

โœ… Window
C:\Program Files\PostgreSQL\17\data\pg_hba.conf ์— ๋“ค์–ด๊ฐ€์„œ
local, ipv4, ipv6 ๋ฐ”๊ฟ”์ค€๋‹ค.

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     scram-sha-256
host    replication     all             127.0.0.1/32            scram-sha-256
host    replication     all             ::1/128                 scram-sha-256

โœ… Mac
psql -U $(whoami)


โœ”๏ธ intelliJ ์ค€๋น„ํ•˜๊ธฐ

profile
๐Ÿ—‚๏ธ hamstern

0๊ฐœ์˜ ๋Œ“๊ธ€