【问题标题】:`heroku pg:psql` doesnt work but psql works`heroku pg:psql` 不工作,但 psql 工作
【发布时间】:2019-11-30 23:30:50
【问题描述】:

注意:我在 Windows 上。

在我的计算机上安装 postgreSQL 后尝试使用 heroku pg:psql 给我这个错误:

--> Connecting to postgresql-defined-56809 ! The local psql command could not be located. For help installing psql, see ! https://devcenter.heroku.com/articles/heroku-postgresql#local-setup

psql 命令有效,psql --version 返回的版本与heroku pg:info 返回的我的数据库在 heroku 上使用的版本相同。

我已按照该链接中的说明进行操作,但仍然无法正常工作(我从一开始就这样做了)。我什至重新启动了我的计算机,但它仍然无法正常工作。

编辑:发现psql在powershell中运行但在cmd中没有运行

【问题讨论】:

    标签: postgresql heroku


    【解决方案1】:

    好的,所以在尝试从 cmd 设置 PATH 之后,我想我搞砸了,heroku 命令不再起作用,我重新安装了 heroku,现在一切正常。真是浪费时间。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-23
      • 2019-07-02
      • 1970-01-01
      • 2014-01-02
      • 2021-01-08
      • 1970-01-01
      • 2021-04-26
      • 2013-03-29
      相关资源
      最近更新 更多