【发布时间】:2018-11-30 23:33:58
【问题描述】:
我想在命令行中使用 pg_restore 恢复我的数据库 postgres,并且我想将用户的密码直接放在命令中,我尝试了这个命令但不起作用
pg_restore -h localhost -p 5432 -U postgres -W 123 -d my_db my_backup.backup
但显示以下消息
pg_restore: too many arguments on the command line (the first being "-d")
【问题讨论】:
标签: postgresql cmd postgresql-9.5