psql:致命:用户“postgres"的身份验证失败; [英] psql: FATAL: Ident authentication failed for user "postgres"

查看:39
本文介绍了psql:致命:用户“postgres"的身份验证失败;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的 Ubuntu Karmic 机器上安装了 PostgreSQL 和 pgAdminIII.

I have installed PostgreSQL and pgAdminIII on my Ubuntu Karmic box.

我能够成功使用 pgAdminIII(即连接/登录),但是当我尝试在命令行上使用相同的用户名/密码(使用 psql)登录到服务器时,出现错误:

I am able to use pgAdminIII successfully (i.e. connect/log on), however when I try to login to the server using the same username/pwd on the command line (using psql), I get the error:

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

现在有人如何解决这个问题吗?

Does anyone now how to resolve this issue?

推荐答案

您是否在 pg_hba.conf 中设置了正确的设置?

Did you set the proper settings in pg_hba.conf?

参见 https://ubuntu.com/server/docs/databases-postgresql怎么做.

这篇关于psql:致命:用户“postgres"的身份验证失败;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆