gpt4 book ai didi

database - 用户 "postgres"的密码验证失败

转载 作者:太空狗 更新时间:2023-10-30 01:41:46 24 4
gpt4 key购买 nike

<分区>

我已经成功地在我的 CentOS 服务器上安装了 PostgreSQL server 8.4。之后,我使用'postgres'用户登录到CentOS服务器,但我无法运行任何命令,出现错误:

password authentication failed for user "postgres"

这里是 pg_hba.conf 和 postgresql.conf 中的一些配置:

--------------------configuration in postgresql.conf-----------
listen_addresses = '*'

--------------------configuration in pg_hba.conf---------------
local all all md5
local all postgres md5
host all all 127.0.0.1/32 md5
host all all ::1/128 md5

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com