[NOVICE] Creating database problems

Поиск
Список
Период
Сортировка
От Rouzzi Anissa
Тема [NOVICE] Creating database problems
Дата
Msg-id CA+1FhNpnxHHNbABtZabTB6=u6n5TQrMd8h6gRxHJdcNF-W+1Rw@mail.gmail.com
обсуждение исходный текст
Ответы Re: [NOVICE] Creating database problems  (Andreas Kretschmer <andreas@a-kretschmer.de>)
Список 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 

В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [NOVICE] FDW user mapping
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: [NOVICE] Creating database problems