apache - 如何在 cygwin 中设置 psql 命令?

标签 apache postgresql cygwin psql

我的机器上有一个本地开发站点,带有 Apache 服务器和 PostgreSQL 9.1 数据库。因为我使用的是 Windows,所以我还安装了 Cygwin。我想通过 pgAdmin III 的 Cygwin insead 访问数据库并进行一些查询,但它告诉我找不到 psql 命令。 cygwin中的psql命令应该如何设置?

最佳答案

从今天起,您只需在 cygwin 中安装 postgresql-client 包:

  • 运行您的 cygwin setup.exe 文件(这可以运行多次以 添加更多包)。
  • 在搜索框中键入 postgresql,选择 postgresql-client 并 按“下一步”进行安装。

enter image description here

现在您可以打开 Cygwin 终端并输入 psql 来运行!

enter image description here

关于apache - 如何在 cygwin 中设置 psql 命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14489594/

相关文章:

php - MAMP - 现有的 Apache 和 PHP

mysql - 问题 Xampp NetStat TCP 服务未停止

android - arm-linux-androideabi-g++.exe : CreateProcess: No such file or directory error

postgresql - Amazon RDS Postgres -> 授予 pg_catalog 权限

sql - 将字符字段更改为日期

c++ - 在 cygwin 上为 android 编译 boost 时无法识别的命令行选项

c - 调用 setvbuf 的段错误

apache - Apache 反向代理后面的 JBoss 服务器和 CouchDB 服务器

Apache:客户端被服务器配置拒绝,我找不到错误

javascript - Node.js express | JQuery 获取 JSON 时客户端没有任何反应