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:
- http://www.postgresql.org/docs/current/static/libpq-envars.html
- http://www.postgresql.org/docs/current/static/libpq-pgpass.html
or question: how specify password psql non-interactively?
Comments
Post a Comment