-
Notifications
You must be signed in to change notification settings - Fork 0
Database
kitiya edited this page Mar 12, 2020
·
18 revisions
PostgreSQL is a powerful, open source object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance.
PSequel, a PostgreSQL GUI tool, provides a clean and simple interface for you to perform common PostgreSQL tasks quickly.
$ brew doctor
$ brew update
$ brew install postgresql
brew services start postgresql
brew services stop postgresql
createdb <database_name>
We can connect to the <database_name> using PSequel. By default it runs on localhost port:5432.
psql <dtabase_name>
psql -U postgres -l
psql -U postgres -d <database_name>
dropdb <database_name>
dropdb <database_name> && createdb <database_name>