Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
50025 Lượt xem

I made a clean install using the packaged version of Odoo 13 into a linux server. I am trying to access the database using pgadmin4. The connection seems to be ok but I am not able to get the correct user/password combination. I read I could find the information at /etc/odoo/odoo.conf  and this is what I got :


sudo more /etc/odoo/odoo.conf 

[sudo] password for parallels: 

[options]

; This is the password that allows database operations:

; admin_passwd = admin

db_host = False

db_port = False

db_user = odoo

db_password = False

;addons_path = /usr/lib/python3/dist-packages/odoo/addons



I tried the user odoo with the passoword I entered when creating the database within Odoo but no result.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Ben Quan,

You have to set db_password which you have created in pgadmin for user odoo and then create your database within odoo and there will you set your custom user and password.

 

trying these commands in terminal

$su postgres

$psql

*alter user odoo with password admin;

and go to odoo config file and write (db_password = admin,db_host = localhost,

db_port = 5432)


Creating Postgres User For Odoo


Thank you

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thanks Pinal

I tried setting db_password. The file now reads:

[options]

; This is the password that allows database operations:

; admin_passwd = admin

db_host = False

db_port = False

db_user = odoo

db_password = mypassword

;addons_path = /usr/lib/python3/dist-packages/odoo/addons


I then deleted the database and recreated it using Odoo. But still same redult : FATAL: password authentication failed for user "odoo"

Ben



Ảnh đại diện
Huỷ bỏ

Hello Ben,

trying these commands in terminal

$su postgres

$psql

*alter user odoo with password admin;

and go to odoo config file and write (db_password = admin,db_host = localhost,

db_port = 5432)

Tác giả

Thanks that did the trick

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 25
760
2
thg 1 25
6758
2
thg 1 24
10137
7
thg 1 24
47855
0
thg 3 23
1668