Postgres permission denied on MAC OS X

前端 未结 6 992
一整个雨季
一整个雨季 2020-12-09 16:12

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:         


        
6条回答
  •  一向
    一向 (楼主)
    2020-12-09 17:09

    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.

提交回复
热议问题