Skip to content

Instantly share code, notes, and snippets.

@kurko
Forked from filipebarcos/what_i_did.sh
Created August 14, 2013 20:41
Show Gist options
  • Save kurko/6235358 to your computer and use it in GitHub Desktop.
Save kurko/6235358 to your computer and use it in GitHub Desktop.
# 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