Skip to Content
मेन्यू
This question has been flagged
2 Replies
4143 Views

when I use this :

psql -U odoo -d test_init -f test_init.sql

I get this error:

psql: FATAL: Peer authentication failed for user "odoo"


how can I fix this ???

I use new odoo installation debian, odoo8

Avatar
Discard
Best Answer

try this,


sudo su postgres

createdb test_init -O odoo

psql -d test_init -f test_init.sql


Kind regards,

Juanvi

Avatar
Discard
Best Answer

Hello,

psql -U odoo -d test_init -f test_init.sql

This command is try to connect with postgresql database using user "odoo". But you have not define this user/role for postgresql database.


Please first create user/role named "odoo" and then try to connect using that user.

Avatar
Discard
Related Posts Replies Views Activity
1
अग॰ 24
32277
2
जुल॰ 24
10343
2
सित॰ 22
7972
1
अप्रैल 25
1024
3
अग॰ 24
8739