프로그래밍/postgresql

[mac] postgres 실행 확인 명령어

파니동 2021. 5. 31. 22:36

homebrew를 통해 postgres를 설치하였을 때를 기반으로 한다.

 

버전확인

postgres --version

 

brew 명령어로 postgres서비스 실행.

brew services start postgresql

 

데이터베이스 접속

psql postgres