用户"odoo"的对等身份验证失败 [英] Peer authentication failed for user "odoo"

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

问题描述

我在Odoo 9上,在给odoo服务器$odoo.py -r odoo -w password午餐时遇到问题,localhost:8069无法加载,并且在终端用户"odoo"的对等身份验证失败"上出现错误.

I'm on Odoo 9, I have an issue when lunching odoo server $odoo.py -r odoo -w password, the localhost:8069 doesn't load and I get an error on terminal "Peer authentication failed for user "odoo"".

我已经在postgres上创建了一个用户"odoo".
午餐$odoo.py时,我可以在浏览器中加载odoo页面,但不能创建数据库(作为默认用户).

I already created a user "odoo" on postgres.
When lunching $odoo.py I can load the odoo page on browser but I can't create database (as default user).

它正在运行,并且我已经创建了数据库,但是当我注销时,我无法再连接到我的数据库帐户.

It was working and i already created database but when I logged out I couldn't connect to my database account anymore.

有什么想法吗?

推荐答案

您需要更改pg_hba.conf配置. 此错误表示您正在使用对等身份验证,因此需要将其更改为md5或适合您的内容.

You need to change your pg_hba.conf configuration. This error means that you are using peer authentication, so you need to change it for md5 or something that suits you.

您可以在此处找到更多信息: http://www.postgresql.org/docs/9.4 /static/auth-pg-hba-conf.html

You can find more information here: http://www.postgresql.org/docs/9.4/static/auth-pg-hba-conf.html

如果您在本地连接,则需要从

If you are connecting locally you will need to change the following entrance from

本地所有同龄人

类似这样:

所有本地md5

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

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