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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
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)
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
2
lug 20
|
6938 | ||
|
0
mar 19
|
4 | ||
|
1
nov 24
|
5565 | ||
|
4
nov 19
|
2525 | ||
Postgresql not connecting.
Risolto
|
|
1
feb 19
|
8133 |