PHP Warning: Error while sending QUERY packet. PID=11999

0

本地没问题,上传到服务器后时好时坏的。


================================================ 测试区域 =================================================

================================================ 测试区域 =================================================

================================================ 测试区域 =================================================

PHP Warning: Error while sending QUERY packet. PID=29762 in /home/wwwroot/icreate/system/database/drivers/mysqli/mysqli_driver.php on line 264

Warning: Error while sending QUERY packet. PID=29762 in /home/wwwroot/icreate/system/database/drivers/mysqli/mysqli_driver.php on line 264
PHP Fatal error: Call to a member function num_rows() on boolean in /home/wwwroot/icreate/application/models/Module.php on line 132

Fatal error: Call to a member function num_rows() on boolean in /home/wwwroot/icreate/application/models/Module.php on line 132
WORKER EXIT UNEXPECTED E_ERROR Call to a member function num_rows() on boolean in /home/wwwroot/icreate/application/models/Module.php on line 132
worker exit with status 65280

================================================ 测试区域 =================================================

================================================ 测试区域 =================================================

================================================ 测试区域 =================================================
已邀请:

walkor

赞同来自:

应该是mysql链接因为长时间不通讯被mysql服务端关闭了导致的。
你可以每次用完mysql 链接就关闭掉,下次用时再连。
或者判断下错误码(一般是2006),如果是这个错误码,就重连mysql

要回复问题请先登录注册