how to set up the psql command in cygwin?

前端 未结 3 1106
不知归路
不知归路 2021-02-02 16:45

I have a local dev site on my machine with Apache server and PostgreSQL 9.1 database. As I\'m using Windows, I also installed Cygwin. I want to access to database and make some

3条回答
  •  别那么骄傲
    2021-02-02 17:24

    If I understand your question correctly you are running cygwin because you want to run queries against PostgreSQL via bash and psql on Windows, right?

    Cygwin can run Windows binaries from bash, so install the native Windows builds and make sure psql.exe is in the PATH You should be able to copy the executable if necessary.

    There is no need to install a native Cygwin build of PostgreSQL. Just use the existing psql tool, and make sure you can access the Windows-native psql.exe.

提交回复
热议问题