psql: FATAL: Peer authentication failed for user “dev”

后端 未结 12 846
盖世英雄少女心
盖世英雄少女心 2020-12-12 09:40

when i create a new user, but it cannot login the database.
I do that like this:

postgres@Aspire:/home/XXX$ createuser dev
Shall the new role be a superu         


        
12条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 10:32

    This works for me when I run into it:

    sudo -u username psql
    

提交回复
热议问题