所以我尝试通过以下命令从我的网站提取数据:
heroku pg:pull DATABASE_URL mylocaldb --app devhaven
但是它抛出了这个错误:
DL is deprecated please use Fiddle
! 'createdb' is not recognized as an internal or external command,
! operable program or batch file.
!
! Unable to create new local database. Ensure your local Postgres is working and try again.
最佳答案
您需要确保 1) PostgreSQL 已在本地安装并运行,2) PostgreSQL 命令行工具位于您的 PATH
中。无法识别 createdb
的错误表明命令不可用。
关于python - 无法将 Heroku 数据库 pull 到本地,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36785971/