gpt4 book ai didi

cygwin - 在 Cygwin 和 MINTTY 中打开 PostgreSQL

转载 作者:行者123 更新时间:2023-12-01 12:48:58 27 4
gpt4 key购买 nike

我似乎无法使用 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com