跳至内容
菜单
此问题已终结
2 回复
8851 查看

I have created 3 databases, but when I run ./odoo-bin only one db is shown (the database name is ben like  the OS user).

I searched the forums and I get that it should be related to the owner of the database in postgresql, but the 3 databases have the same owner (ben).

The odoo.conf has these lines:

db_host = False
db_maxconn = 64
db_name =
db_password = False
db_port = False
db_sslmode = prefer
db_template = template0
db_user = False
dbfilter = .*


but dbfilter there does not seem to work.

The only way to make them show is if I run it as: ./odoo-bin --db-filter '.*'

Can anyone point where the problem is?

 

形象
丢弃

@Ben Quan, have you got a solution? i am facing the same issue.

最佳答案

Hi,

If you specify db_filter or db_name in the odoo configuration file, then you will get only filtered databases.

Suppose if you set a db filter, then db's matching given filter will be listed and if you specify db_name in conf file, only that database will be shown.

Also if you are running via service file or command line, make sure you didn't pass db name in -d 


Thanks

形象
丢弃
最佳答案

You only need this min configuration to run ODOO.

db_host = localhost
db_port = 5432
db_password = postgres
db_user = odoo
xmlrpc_port = 8013
debug_mode = False
;data_dir=/home/dell/.local/share/Odoo/filestore
addons_path = /opt/odoo/addons

make sure you needed db_template, db_name, db_filter.
You don't need to specify db_filter if you need full list of dbs

形象
丢弃
相关帖文 回复 查看 活动
2
12月 23
6143
1
11月 22
2118
1
11月 23
59388
2
10月 16
8574
2
10月 23
583