0. brew install postgresql
1. /usr/local/Cellar/postgres 폴더가 생김
2.원하는 위치에 postgre db 설치할 디렉토리 생성
3. initdb -D directory/ -l directory/server.log
4. vi .bash_profile => export PGHOST=localhost
5. psql 로 들어갈 수 있음
'Ruby On Rails' 카테고리의 다른 글
PostgreSQL 설정 (0) | 2013.05.25 |
---|---|
Routing에서 member와 collection 이해하기 (0) | 2013.05.19 |
rails에서 get method가 보낼 수 있는 파라미터 (0) | 2013.05.19 |
데이터베이스 구조를 sql문으로 복사하기. (0) | 2013.05.18 |
Ruby TDD - Rspec 따라하기 11단계 (0) | 2013.05.17 |
Ruby On Rails 세팅 (0) | 2013.05.15 |
댓글을 달아 주세요