Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
8676 Tampilan

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?

 

Avatar
Buang

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

Jawaban Terbai

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

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Des 23
5893
1
Nov 22
1931
1
Nov 23
59100
2
Okt 16
8470
2
Okt 23
583