






























Official Documentation and Tutorial
Make sure that brew service is installed
brew tap homebrew/services
Start PostgreSQL as a background service: (will start automatically at login)
brew services start postgresql
stop and restart:
brew services stop [restart] postgresql
(to add)
command line tool: psql
graphical tool: pgAdmin
then execute commands for the database.
For example:
psql mydb -c "\l"
psql mydb -c "[command]"
list databases: \l
list tables: \dt
show columns: \d table
quit: \q
Full doc here.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。