Postgresql does not prompt for password

前端 未结 3 1582
我寻月下人不归
我寻月下人不归 2021-02-02 01:12

I have a postgresql 8.3 db set up on linux box, together with a user postgres The pg_hba.conf reads

local   all         postgres                          ident          


        
相关标签:
3条回答
  • 2021-02-02 02:02

    Are you sure you did restart or reload of PostgreSQL after pg_hba.conf change?

    If yes, type this command from postgres system account (shell):

    psql -qAt -c "show hba_file" | xargs grep -v -E '^[[:space:]]*#'
    

    If this will not help - show us output of the command.

    0 讨论(0)
  • 2021-02-02 02:08

    You have to change both lines for IPv4 and IPv6 in pg_hba.conf

    # IPv4 local connections:
    host    all         all         127.0.0.1/32          md5
    # IPv6 local connections:
    host    all         all         ::1/128               md5
    

    Server restart is needed.

    0 讨论(0)
  • 2021-02-02 02:10

    Try

     host   all   all   127.0.0.1/32        md5
    

    instead.

    0 讨论(0)
提交回复
热议问题