我正在使用 Yii 和 postgres 数据库中的应用程序。当我在实时服务器(不是本地系统)上运行应用程序时,我收到此错误
“CDbConnection 无法打开数据库连接:SQLSTATE[08006] [7] 无法连接到服务器:没有可用的缓冲区空间 (0x00002747/10055) 服务器是否在主机“localhost”上运行并接受 端口 5432 上的 TCP/IP 连接?”
我有 5 个活跃的客户数据库。错误不是每次都显示。如何解决这个问题..?
最佳答案
当 Winsock 操作返回错误 WSAENOBUFS
时,PostgreSQL 会抛出此错误消息。
微软 describes the error如:
No buffer space available.
An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.
这是Windows操作系统的问题。我对 Windows 不太了解,但听起来资源短缺。
也许打开的 TCP 连接太多?
关于postgresql - 没有可用的缓冲空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39610122/