2012-05-31 98 views
0

我安裝我想從CMD訪問PostgreSQL的Windows 7的OpenGeo套房2.4.5,但是當我試圖訪問它,我得到這個錯誤:無法從CMD訪問PostgreSQL的在Windows

psql: could not connect to server: Connection refused (0x0000274D/10061) 
     Is the server running on host "???" and accepting 
     TCP/IP connections on port 5432? 
    could not connect to server: Connection refused (0x0000274D/10061) 
     Is the server running on host "???" and accepting 
     TCP/IP connections on port 5432? 

即使我嘗試通過QGIS進行連接時遇到同樣的錯誤。我認爲postgresql服務沒有列出,這就是爲什麼我無法訪問或連接它。有人可以指導我。

謝謝

回答

1

終於找到了答案。 ..在CMD上運行: c:\ psql -p 54321 -U postgres 和類似的..在QGIS中將端口號更改爲54321以訪問它。