Rails: FATAL - Peer authentication failed for user (PG::Error)

后端 未结 8 673
心在旅途
心在旅途 2020-12-04 04:22

I am running my development on Ubuntu 11.10, and RubyMine

Here is my development settings for the database.yml: which RubyMine created for me

develop         


        
8条回答
  •  南笙
    南笙 (楼主)
    2020-12-04 05:05

    For permanent solution:

    The problem is with your pg_hba. This line:

    local   all             postgres                                peer
    

    Should be

    local   all             postgres                                md5
    

    Then restart your postgresql server after changing this file.

    If you're on Linux, command would be

    sudo service postgresql restart
    

提交回复
热议问题