Created
February 7, 2017 20:18
-
-
Save mdiener21/b423e0aee9e7fa4b46054696d7938881 to your computer and use it in GitHub Desktop.
Set initial password for postgres database ubuntu fresh install
This file contains hidden or 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
#In a terminal, type: | |
sudo -u postgres psql postgres | |
# this connects as a role with same name as the local user, i.e. "postgres", to the database called "postgres" (1st argument to psql). | |
# Set a password for the "postgres" database role using the command: | |
\password postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment