본문 바로가기

DB/postgresql

error: connection to server on socket "/tmp/.s.PGSQL.5432"

DB Server를 시작하지 않아서 발생하는 에러입니다.

 

설치 파일 위치로 가 서버를 실행하면 됩니다.

 

저는 m1(arm) 환경에서 brew를 통해 14 version을 설치하였으므로

 

pg_ctl -D /opt/homebrew/var/postgresql@14 start
// intel의 경우 /usr/local/var/postgresql@14 start

로 서버를 구동한 후 접속하면 됩니다.

'DB > postgresql' 카테고리의 다른 글

Windows PostgreSQL 설치  (0) 2022.08.10
sequence vs serial (postgresql의 auto increment)  (0) 2022.07.20