我正在尝试从命令行运行psql.exe。我得到的错误如下:
C:>cd C:Program FilesPostgreSQL8.3bin
C:Program FilesPostgreSQL8.3bin>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?
有谁能帮我解决这个问题吗?
您需要为它提供一些参数:
C:Program FilesPostgreSQL8.3bin> psql.exe -h localhost -U user -d database