gpt4 book ai didi

postgresql - 在 pg_restore 命令行窗口中自动输入用户密码

转载 作者:行者123 更新时间:2023-11-29 14:31:34 55 4
gpt4 key购买 nike

<分区>

我想在命令行中使用 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")

55 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com