Skip to content

Instantly share code, notes, and snippets.

@sdoro
Created November 11, 2012 08:13
Show Gist options
  • Save sdoro/4054136 to your computer and use it in GitHub Desktop.
Save sdoro/4054136 to your computer and use it in GitHub Desktop.
Reset user name "postgres" password
sudo su - postgres
psql
ALTER USER postgres with password 'new-password';
\q
@sdoro
Copy link
Author

sdoro commented Dec 19, 2012

before trying the above gist you must start postgres service with:

/etc/init.d/postgresql start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment