Creating database problems

From: Rouzzi Anissa <rouzzi(dot)anissa(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Creating database problems
Date: 2017-10-01 11:50:00
Message-ID: CA+1FhNpnxHHNbABtZabTB6=u6n5TQrMd8h6gRxHJdcNF-W+1Rw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello,

Within my application , i need to create a new database from existanting
database so i'm using this batch :

*cd "C:\Program Files\Postgresql\9.5\bin"*

*pg_dump.exe --host %Server% --port 5432 --username "postgres"
--no-password --format custom --blobs --verbose "%DatabaseModel%"*

*createdb -h %Server% -U postgres -p 5432 %NewDatabase%*

*pg_restore -h %Server% -U postgres -d %NewDatabase% Fichier.dump*

but that doesn't work for me , i think it is a problem of password so i
used Set PGPAssword and

PGPAssFile but that didn"t work for me

how can achieve that?

Thanks

--

Cordialement

ROUZZI Anissa

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Andreas Kretschmer 2017-10-01 19:02:49 Re: Creating database problems
Previous Message Tom Lane 2017-09-29 17:22:23 Re: FDW user mapping