ODOO12 恢復數(shù)據(jù)庫報錯:
Database restore error: Command psql not found.
運行odoo源碼的主機上未找到psql命令
原因一般情況下是運行odoo源碼的主機上未安裝數(shù)據(jù)庫
另一種情況是安裝過數(shù)據(jù)庫但是odoo.conf文件中 pg_path 參數(shù)配置錯誤
在運行odoo源碼的機器上安裝postgresql數(shù)據(jù)據(jù)
linux系統(tǒng)安裝完postgresql重啟下不用改參數(shù)應該就可以了。
如果還是不行就修改odoo.conf文件中的pg_path參數(shù) pg_path = /usr/lib/postgresql/10/bin
macos 改為 pg_path = /usr/local/opt/postgresql@10/bin
具體的路徑還是得看你安裝的情況而定