개발 잘 하고 싶다 => 알고 쓰자/ERROR(삽질) 모음

[postgresql] psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket?

장 상 현 2023. 6. 30.
cd /opt/homebrew/var/postgresql
// 특정 버전에 맞춰 경로접근

rm -f postmaster.pid
// pid 삭제

brew services start postgresql@14
// 특정 버전에 맞춰 재실행

psql postgres
// 실행 확인

homebrew 로 설치했습니다

 

에러 발생 원인: postmaster.pid 파일의 손상

 

해당 파일이 없어도 postgresql 실행시 자동생성되니 삭제 후 재실행 하면 해결

댓글