gpt4 book ai didi

PostgreSQL 登录问题,无法在 Linux 中连接

转载 作者:行者123 更新时间:2023-11-29 13:21:28 25 4
gpt4 key购买 nike

<分区>

当我尝试使用 psql -d root -U postgres 登录到 postgresql 时,出现以下错误。

psql: FATAL:  Peer authentication failed for user "postgres"

当只输入 psql 时出现以下错误:

psql: FATAL:  no pg_hba.conf entry for host "[local]", user "root", database "root", SSL off

我能做什么?我无法理解。

提前致谢

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