Skip to content

Instantly share code, notes, and snippets.

@spidezad
Created December 15, 2019 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spidezad/d01c61a051f87840dd68360a1c970cf8 to your computer and use it in GitHub Desktop.
Save spidezad/d01c61a051f87840dd68360a1c970cf8 to your computer and use it in GitHub Desktop.
PSQL Commands
# Start PostgreSQL server
pg_ctl -D /usr/local/var/postgres start
# list all database
\l
# help on all commands
\?
# connect to database
\c dbname username
# quit psql
\q
#link: http://www.postgresqltutorial.com/psql-commands/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment