-
-
Save kurko/6235358 to your computer and use it in GitHub Desktop.
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
# when I tried to start postgres, I had an error telling me there were no postgres clusters created | |
# so I had to create one using the `pg_createcluster` command, like the following | |
pg_createcluster 9.1 main --start | |
#after creating the cluster, it will start the server because of `--start` | |
#so I had to change to postgresql user | |
sudo su - postgres | |
#to change it's pasword, doing `psql -d <database_name> -U <username> | |
psql -d postgres -U postgres | |
#inside psql, I did | |
\password postgres | |
#so psql will ask for new password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment