cygwin - 在 Cygwin 和 MINTTY 中打开 PostgreSQL

标签 cygwin mintty

我似乎无法使用 MINTTY 或使用默认的 Cygwin 终端打开 PSQL 的交互模式,它只是在命令 psql databasename 下停止并且什么都不做。让它响应的唯一方法是按 ctrl+C 退出它。它在命令提示符下运行良好。

我知道对于 Python,您需要输入 -i 参数 - Cygwin 是否有类似的技巧?

最佳答案

我遇到了同样的问题。出于某种原因

psql -l -h localhost -U postgres

返回数据库列表,但 psql 上的任何其他变体都会静静地挂起。


编辑:我在这里找到了答案:how to set up the psql command in cygwin?

Windows psql uses Windows console functions; Cygwin runs best in a terminal like Console2, which doesn't support Windows console API. So psql doesn't work well with Cygwin at all. What's needed is a Cygwin build of client tools like psql

关于cygwin - 在 Cygwin 和 MINTTY 中打开 PostgreSQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13731384/

相关文章:

c++ - 无法打开输出文件 ___.exe : Permission denied

dll - 用 Cygwin 编译独立的 exe

安卓CDT : Possible to use ndk-build without bash (Eclipse in Windows)?

windows - 从命令行对十六进制数进行排序?

vb.net - BC30451 'VARIABLE' 未声明。由于其保护级别,它可能无法访问

cygwin - 在Mintty的Cygwin窗口缓冲区中搜索

java - Windows 7配置上带有HBase的Titan

windows - 如何更改 Git Bash for Windows 的启动位置?

curl - 如何启动 Mintty 并运行脚本文件?

bash - Windows 2008 R2 x64上的Hadoop 2.3.0上的Pig 0.12.0