PostgreSQL, 외부 서버 접속
PostgreSQL, 외부 서버 접속
외부 서버에서 설정
- C:/Program Files/PsotgreSQL/15/data/pg_hba.conf 파일 수정
1
2
3
4
5
6
7
...
IPv4 local connections:
host all all 127.0.0.1/32 scram-sha-256
host all all 0.0.0.0/0 m5 << 이 부분 추가
...
- C:/Program Files/PsotgreSQL/15/data/postgresql.conf 파일 수정
1
2
3
...
listen_address = '*'
- 외부 서버의 방화벽을 5432 포트를 허용하거나 해제해야한다.
클라이언트 pgAdmin 에서 설정
이 기사는 저작권자의 CC BY 4.0 라이센스를 따릅니다.