Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thebinarypenguin/be72e76cc8212bcd77bfc00b16e6ae67 to your computer and use it in GitHub Desktop.
Save thebinarypenguin/be72e76cc8212bcd77bfc00b16e6ae67 to your computer and use it in GitHub Desktop.
Thinkful ubuntu postgresql notes
---
Log into psql using peer-authentication
sudo -u postgres psql
---
Set the default password for the postgres user
1. Switch to postgres user, open postgres database
sudo -u postgres psql postgres
2. Set the password for the postgres user (you will be prompted to enter the password)
\password postgres
3. Quit psql
\q
Now you should be able to log in with a password via DBeaver
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment