Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
51512 มุมมอง
How to connect Odoo with Postgresql.
Odoo running in one machine, Postgresql running in another machine.
My requirement is i have to run odoo and postgresql in two different machines.
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,
Please read this blog, where the same criteria is explained in detail:- Professional Odoo 11 Deployment Guid



In the postgres:



Then update the odoo conf file with this db host and port.

Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You just need to pass "db_host=IP_of_DB_INSTANCE" & "db_port=DATABASE_PORT (by default it is 5432)"

Now, you need to change the postgres config file which will allow the IP of Odoo Instance to connect postgres.

Open: /etc/postgresql/9.5/main/pg_hba.conf and make changes in following section:

# IPv4 local connections:
host all all 127.0.0.1/32 trust
host all all IP_of_Odoo_INSTANCE/24 trust

Save the file and restart the postgres server (sudo service postgres  restart)

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 20
7273
0
มี.ค. 19
4
1
พ.ย. 24
6034
4
พ.ย. 19
2818
Postgresql not connecting. แก้ไขแล้ว
1
ก.พ. 19
8371