Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
4060 Prikazi

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
Opusti
Best Answer

try this,


sudo su postgres

createdb test_init -O odoo

psql -d test_init -f test_init.sql


Kind regards,

Juanvi

Avatar
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
avg. 24
32095
2
jul. 24
10258
2
sep. 22
7931
1
apr. 25
934
3
avg. 24
8656