在OS X上使用Postgres.app时如何在路径上放置psql?

编程入门 行业动态 更新时间:2024-10-28 10:24:18
本文介绍了在OS X上使用Postgres.app时如何在路径上放置psql?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经在Mac上安装了Postgres93。我可以打开该应用程序,然后通过该应用程序打开psql打开与psql的命令行界面。

I've installed Postgres93 on my Mac. I can open the application, and "Open psql" through the app which opens up a command line interface with psql.

但是,当我键入时$其中psql 不返回任何内容。安装路径为 /Applications/Postgres93.app 。如何使 $哪个psql 显示正确的结果?

However, when I type $ which psql nothing is returned. The installation path is /Applications/Postgres93.app. How do I make $ which psql show the correct result?

Mac OS X-Mavericks

Mac OS X - Mavericks

PostgreSQL软件包,我不太确定。我去这里下载了它- postgresapp/

PostgreSQL package, I'm not as sure about. I went here and downloaded it - postgresapp/

推荐答案

似乎您安装了Heroku的 Postgres.app ,这是一个用于一次性测试和开发的工具。按照Postgres.app文档中的说明,通过将包的内容添加到您的 PATH 中-请参见命令行工具。

It appears that you installed Heroku's Postgres.app, which is a tool intended for throw-away testing and development. Add the contents of the bundle to your PATH by following the instructions in the Postgres.app documentation - see "command line tools".

更多推荐

在OS X上使用Postgres.app时如何在路径上放置psql?

本文发布于:2023-10-18 05:59:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1503337.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:路径   如何在   Postgres   OS   psql

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!