Last active
November 10, 2015 10:00
-
-
Save itsprdp/800e507f673b03d67654 to your computer and use it in GitHub Desktop.
Create postgres superuser with no password for login
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
#################################################### | |
# WARNING: Don't use this on production environments | |
#################################################### | |
# Login to psql terminal with postgres user | |
psql -U postgres | |
DROP ROLE root; # Run this if role root already exists | |
CREATE ROLE root WITH SUPERUSER LOGIN PASSWORD NULL; | |
createdb root; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment