thinkphp5.0.24版本做VUE接口时不时出现奇怪错误

浏览:2568 发布日期:2021/08/28
5.0.0 - 普通 - 未处理
#2 [internal function]: think\db\Connection->__destruct()
#3 {main}
thrown in /home/wwwroot/beargo/thinkphp/library/think/db/Connection.php on line 318
[28-Aug-2021 00:35:30 PRC] PHP Fatal error: Uncaught think\exception\ErrorException: Error while sending STMT_CLOSE packet. PID=11062 in /home/wwwroot/beargo/thinkphp/library/think/db/Connection.php:318
Stack trace:
#0 /home/wwwroot/beargo/thinkphp/library/think/db/Connection.php(318): think\Error::appError(2, 'Error while sen...', '/home/wwwroot/b...', 318, Array)
#1 /home/wwwroot/beargo/thinkphp/library/think/db/Connection.php(1054): think\db\Connection->free()

按临时解决 修改/thinkphp/library/think/db/Connection.php
1.1是否需要断线重连
1.2 释放查询结果 捕获异常
1.3 是否断线,修改为master最新

按这个修复又出现
[2002] PDOException in Connection.php line 295
SQLSTATE[HY000] [2002] No such file or directory
评论(
后面还有条评论,点击查看>>