加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

对等身份验证对postgresql意味着什么?

发布时间:2020-12-13 16:24:38 所属栏目:百科 来源:网络整理
导读:我正在尝试登录我的数据库并收到此错误… root@---:~# psql -U user databasepsql: FATAL: Peer authentication failed for user "user" 这是什么意思? 我很确定我可以通过将peer放入我的pg_hba.conf来修复它,但我不确定我是否应该如此…… 这意味着系统尝
我正在尝试登录我的数据库并收到此错误…
root@---:~# psql -U user database
psql: FATAL:  Peer authentication failed for user "user"

这是什么意思?
我很确定我可以通过将peer放入我的pg_hba.conf来修复它,但我不确定我是否应该如此……

这意味着系统尝试进行对等身份验证( …obtaining the client's operating system user name from the kernel and using it as the allowed database user name (with optional user name mapping). This method is only supported on local connections.),但失败了.

您的pg_hba.conf是否配置为本地连接的对等身份验证?
如果是这样,您可能需要将其更改为更合适的身份验证方法,例如md5或trust(不推荐).
有关更多信息,请参阅Postgres Manual.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读