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


你可能感兴趣的:(PostgreSQL)