Postgresql does not prompt for password

前端 未结 3 1715
我寻月下人不归
我寻月下人不归 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: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.

提交回复
热议问题