Postgresql 笔记

257 阅读1分钟

----------windows-----------

// start service
sudo service postgresql start

// 进入控制台
sudo su - postgres psql

------------mac-------------
// start service
pg_ctl -D /usr/local/var/postgres start

psql -U postgres -h localhost