攻城狮科学家

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

https://medium.com/@Umesh_Kafle/postgresql-and-postgis-installation-in-mac-os-87fa98a6814d

 

createdb postgis_test

psql postgis_test

 

Start manually:

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

Stop manually:

pg_ctl -D /usr/local/var/postgres stop

$ brew services list
$ brew services restart postgresql

$ createdb mydb
$ psql -s mydb
# create user guott password 'password';
# GRANT ALL PRIVILEGES ON DATABASE mydb TO guott;
 Create Super User: /usr/local/opt/postgres/bin/createuser -s postgres
 
posted on 2019-07-11 11:08  攻城狮科学家  阅读(226)  评论(0)    收藏  举报