Openerp无法连接到postgresql数据库
我的服务器是Centos 6.4 64位、ip 192.168.7.4、postgresql-Server-8.4.20-1.el6_5.x86_64Openerp无法连接到postgresql数据库,postgresql,openerp,openerp-7,Postgresql,Openerp,Openerp 7,我的服务器是Centos 6.4 64位、ip 192.168.7.4、postgresql-Server-8.4.20-1.el6_5.x86_64 [root@backup soft]# netstat -tupln | grep 5432 tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 27533/postmaster tcp 0 0 ::
[root@backup soft]# netstat -tupln | grep 5432
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 27533/postmaster
tcp 0 0 :::5432 :::* LISTEN 27533/postmaster
我安装了Openerp 7.0,通过运行python setup.py安装,在postgresql中创建了db Openerp。
当我尝试通过web浏览器访问openerp:192.168.7.4:8069时,它显示错误致命:用户身份验证失败\openerp\
我无法在postgresql中登录到openerp db:
psql -d openerp -U openerp -W
Password for user openerp:
psql: FATAL: Ident authentication failed for user "openerp"
我确信密码与/etc/openerp-server.conf相同
[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = localhost
db_port = 5432
db_user = openerp
db_password = *********
这是my/var/lib/pgsql/data/pg_hba.conf
local all all ident
host all all 127.0.0.1/32 ident
host all all 192.168.7.4/32 ident
还有一个问题,我如何才能完全删除openerp?我想重新安装openerp。
谢谢。请尝试重置openerp用户的密码,然后按照以下说明进行操作:
sudo su - postgres
然后输入root用户的密码,然后进入psql并编写以下查询:
ALTER USER openerp WITH PASSWORD '<fill with wathever password you want>';
并尝试使用新密码运行openerp
对于openerp的执行,我不确定运行openerp的命令是否正确。
对于我来说,我使用以下命令:
python openerp-server -r <db_user> -w <password_db_user>