PostgreSQL

From Briki
Revision as of 11:08, 7 February 2020 by Andrew (talk | contribs) (PostgresSQL)
Jump to: navigation, search

PostgresSQL

Creating a DB

 sudo -u postgres createdb <dbname>

Creating a user

 sudo -u postgres createuser <username>

Starting an interactive session

 psql <dbname>