Skip to content

Instantly share code, notes, and snippets.

@filipebarcos
Created August 14, 2013 20:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save filipebarcos/6235184 to your computer and use it in GitHub Desktop.
Save filipebarcos/6235184 to your computer and use it in GitHub Desktop.
After vito failure to install postgres (9.1) in Ubuntu 12.04
# 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