rake db:create fails, authentication problem with postgresql 8.4

后端 未结 6 1484
逝去的感伤
逝去的感伤 2021-02-06 07:19

first things first, please excuse my utter noobness. I really tried to find a solution out there, but now i\'m stuck and completely clueless.

i\'m trying to deploy a rai

6条回答
  •  南方客
    南方客 (楼主)
    2021-02-06 07:48

    I had same problem. In my case it was because in my database.yml file the username started with capital letter but in database it was all lower case.

    Solution: When creating user from postgres command line, it converts all letters to lowercase. For using capital letters, double quotes must be used.

    Example:

    create user AlbertEinstein; result = alberteinstein

    vs

    create user "AlbertEinstein"; result = AlbertEinstein

提交回复
热议问题