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

后端 未结 12 843
盖世英雄少女心
盖世英雄少女心 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:05

    In my case I was using different port. Default is 5432. I was using 5433. This worked for me:

    $ psql -f update_table.sql -d db_name -U db_user_name -h 127.0.0.1 -p 5433
    

提交回复
热议问题