I was following the ruby on rails tutorial to run with postgres but when I try the \"rake db:create\" I get the following error:
could not connect to server:
I also ran into this problem because I had both the mysql and pg gems active in my Gemfile.
I commented out the mysql gem:
# mysql
Then ran:
bundle install
and then:
rake db:migrate
and it worked like a charm.