0

我正在尝试从命令行运行 psql.exe。我收到如下错误。

C:\>cd C:\Program Files\PostgreSQL\8.3\bin

C:\Program Files\PostgreSQL\8.3\bin>psql.exe
psql: could not connect to server: Connection refused (0x0000274D/10061)
        Is the server running on host "???" and accepting
        TCP/IP connections on port 5432?

任何人都可以帮助如何解决它。

提前致谢。

4

1 回答 1

3

You need to provide it some arguments:

C:\Program Files\PostgreSQL\8.3\bin> psql.exe -h localhost -U user -d database
于 2012-12-26T13:12:57.857 回答