Skip to content

Instantly share code, notes, and snippets.

@helloravi
Last active April 1, 2019 04:04
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 helloravi/09beebba8b9ada34acc83ded83db91e2 to your computer and use it in GitHub Desktop.
Save helloravi/09beebba8b9ada34acc83ded83db91e2 to your computer and use it in GitHub Desktop.
Postgresql Mac
Open console `psql postgres`
Close console.
List users \du
List databases \l
\list: lists all the databases in Postgres
\connect: connect to a specific database
\dt: list the tables in the currently connected database
https://www.codementor.io/engineerapart/getting-started-with-postgresql-on-mac-osx-are8jcopb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment