【问题标题】:Postgres: error connecting to server "An operation was attempted on something that is not a socket."Postgres:连接到服务器时出错“尝试对不是套接字的东西进行操作。”
【发布时间】:2012-10-12 20:35:39
【问题描述】:

我正在使用 Windows,试图让我的数据库正常工作,以便我可以在我的本地主机上创建一个超级用户。

我成功安装了 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

我很难过如何调试这个。

【问题讨论】:

    标签: database localhost postgresql-9.2


    【解决方案1】:

    即使您已经卸载了您的 AV,但根据 Microsoft 的说法,您可能必须使用 KB299357 中的信息重置您的 TCP/IP 配置。

    文章告诉你运行命令

    netsh int ip reset resetlog.txt
    

    这将重置两个注册表项的值

    SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\ 
    SYSTEM\CurrentControlSet\Services\DHCP\Parameters\ 
    

    【讨论】:

      猜你喜欢
      • 2021-11-04
      • 1970-01-01
      • 2016-06-23
      • 2021-09-01
      • 2020-07-19
      • 2013-02-19
      • 1970-01-01
      • 2015-05-26
      • 2014-09-04
      相关资源
      最近更新 更多