2012-10-22 41 views
1

我正在使用Windows,試圖讓我的數據庫工作,所以我可以在我的本地主機上創建一個超級用戶。Postgres:連接到服務器的錯誤「一個操作嘗試在不是套接字的東西上。」

我成功安裝的Postgres 9.2.1,但是當我嘗試連接到服務器,我得到:

Error connecting to the server: server closed the connection unexpectedly 
This probably means the server terminated abnormally before or while processing the request. 

有了這個錯誤日誌:

PDT LOG: incomplete startup packet 
PDT WARNING: pgstat wait timeout 
LOG: could not receive data from client: An operation was attempted on something that is not a socket. 

我完全卸載我的防病毒並確保Windows防火牆已關閉。

我的服務器屬性是默認和postgresql.conf中匹配他們:

Hostname: localhost 
Port: 5432 

我難倒如何調試這一點。

回答

0

即使您已卸載AV,但根據Microsoft的說法,您可能必須使用KB299357中的信息重置TCP/IP配置。

的文章告訴你運行的命令

netsh int ip reset resetlog.txt 

這將重置兩個註冊表項

SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\ 
SYSTEM\CurrentControlSet\Services\DHCP\Parameters\ 
的值
相關問題