Mos*_*yar 6 python database django postgresql heroku
我已经从 Heroku 应用程序下载了 PG 数据库备份,它位于我的存储库文件夹中,名称为latest.dump
我已经在本地安装了 postgres,但无法在 Windows 命令行上使用 pg_restore,我需要运行以下命令:
pg_restore --verbose --clean --no-acl --no-owner -j 2 -h localhost -d DBNAME latest.dump
但没有找到该命令!
由于您使用的是 Windows,因此您的路径上可能没有 pg_restore。你可以在 postgresql 安装的 bin 中找到 pg_restore,例如 c:\program files\PostgreSQL\9.5\bin。
您可以导航到正确的位置,或者只需将该位置添加到您的路径中,这样您就不需要总是导航。
归档时间: |
|
查看次数: |
16787 次 |
最近记录: |