Created
February 25, 2019 15:05
-
-
Save thebinarypenguin/be72e76cc8212bcd77bfc00b16e6ae67 to your computer and use it in GitHub Desktop.
Thinkful ubuntu postgresql notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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