postgresql - postgres pg_restore pbl with windows shell mode -


the following

"c:\program files (x86)\pgadmin iii\1.14\pg_restore.exe" --host localhost --port 5432 --username "postgres" --password "postgres" --dbname "base_nationale" --verbose "e:\dump\ff_d01_2011.dump"

gives error message:

pg_restore: many command-line arguments (first "--host"

why doesn't fuctionne?

you can't specify value --password. switch forces password prompt , should never needed.

just remove part --password "postgres". if password needed, pg_restore automatically prompt it.

if want run command without password prompt, need .pgpass file or use environment variable pgpass

details in manual:

or question: how specify password psql non-interactively?


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -