mac 快速啓動postgresql

brew install postgresql
mkdir -p /usr/local/var/postgres
initdb /usr/local/var/postgres/data
mkdir -p /usr/local/var/log/postgres
pg_ctl start -D /usr/local/var/postgres/data -l /usr/local/var/log/postgres/log.log
export PGDATA=/usr/local/var/postgres/data
相關文章
相關標籤/搜索