FATAL: password authentication failed for user “postgres”

前端 未结 4 1854
花落未央
花落未央 2020-12-30 10:54

getting this error message in ubuntu. in pg_hba.conf file, I tried using \'ident\',\'peer\',\'trust\',\'md5\' in different times.but no go. please help.

4条回答
  •  感动是毒
    2020-12-30 11:18

    in your pg_hba.conf

    # IPv4 local connections:
    # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
    host    all         all         127.0.0.1/32         trust
    

    if it does not work then try with

    host    all         all         your_ip/32         trust
    

    then restart your data base it will work fine

提交回复
热议问题