Skip to Content
Menú
This question has been flagged
1 Respondre
7561 Vistes

Hi,

How to restore database using .dump file in odoo V7 in windows

I have tried using   psql testdb < test.dump and pg_restore -U user_name -d database_name -1 test.dump

and the following error occurs psql: FATAL:  password authentication failed for user "Administrator"

thanks in advance

Avatar
Descartar
Best Answer

do dump as a postgres user.

>> sudo su postgres

>> psql testdb < test.dump

>> pg_restore -U user_name -d database_name -1 test.dump


Avatar
Descartar
Autor

Hi Hilar,

This works well for ubuntu but not in windows.

okay, go to pg_hba.conf and change the postgres user permissions.

Related Posts Respostes Vistes Activitat
0
de febr. 21
6278
1
d’abr. 17
18223
2
de juny 16
2722
0
de març 15
4416
1
de març 15
14796