15 minutes
Participants will be able to:
- Use PostgreSQL from the command line (
psql) and, optionally, a GUI admin app
- Follow the Postgres Homebrew Instructions
- This creates a superuser named postgres
- If you run
psqlwith no args, it assumes you want to connect as your current user (whoamicommand output) - Run
psql postgresto connect as the superuser create database <YOUR_USERNAME>\qto quit- Now you can connect with just
psql
Being a database, Postgres stores most of its settings in itself! So the config file isn't really useful for us.
Install: https://eggerapps.at/postico/
If you created a DB of your user, it should work out of the box if you specify localhost to connect.
This is not recommended because it is too advanced and difficult to connect.
Passwords? with the default setup you shouldn't need a password.
- Commands - A list of PostgreSQL commands on a GitHub gist.