[2] ErrorException in Connection.php line 687

PDOStatement::execute(): MySQL server has gone away

  1. // 参数绑定
  2. if ($procedure) {
  3. $this->bindParam($bind);
  4. } else {
  5. $this->bindValue($bind);
  6. }
  7. // 执行查询
  8. $this->PDOStatement->execute();
  9. // 调试结束
  10. $this->debug(false, '', $master);
  11. // 返回结果集
  12. return $this->getResult($pdo, $procedure);
  13. } catch (\PDOException $e) {
  14. if ($this->isBreak($e)) {
  15. return $this->close()->query($sql, $bind, $master, $pdo);

Call Stack

  1. in Connection.php line 687
  2. at Error::appError(2, 'PDOStatement::execut...', '/www/wwwroot/bms/thi...', 687, ['sql' => 'SELECT COUNT(*) AS t...', 'bind' => [], 'master' => false, ...])
  3. at PDOStatement->execute() in Connection.php line 687
  4. at Connection->query('SELECT COUNT(*) AS t...', [], false, true) in Connection.php line 1302
  5. at Connection->value(object(Query), ['COUNT(*) AS tp_count'], 0) in Connection.php line 1326
  6. at Connection->aggregate(object(Query), 'COUNT', 'COUNT(*) AS tp_count') in Query.php line 623
  7. at Query->aggregate('COUNT', '*', true) in Query.php line 656
  8. at Query->count() in Query.php line 1751
  9. at Query->paginate(15, false, ['type' => 'bootstrap', 'var_page' => 'page', 'list_rows' => 15, ...]) in Listnews.php line 151
  10. at Listnews->index()
  11. at ReflectionMethod->invokeArgs(object(Listnews), []) in Container.php line 355
  12. at Container->invokeReflectMethod(object(Listnews), object(ReflectionMethod), ['m' => 'pc', 'bs' => 'kehu', 'yuming' => 'hnbnkn.com', ...]) in Module.php line 133
  13. at Module->exec() in Dispatch.php line 165
  14. at Dispatch->run() in App.php line 433
  15. at App->think\{closure}(object(Request), object(Closure), null)
  16. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 142
  17. at Middleware->think\{closure}(object(Request))
  18. at call_user_func(object(Closure), object(Request)) in Middleware.php line 94
  19. at Middleware->dispatch(object(Request)) in App.php line 456
  20. at App->run() in index.php line 21

Environment Variables

GET Data
m pc
bs kehu
yuming hnbnkn.com
qianzhui www
cid liuliangji
page 1
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /home/Listnews/index?m=pc&bs=kehu&yuming=hnbnkn.com&qianzhui=www&cid=liuliangji&page=1
QUERY_STRING m=pc&bs=kehu&yuming=hnbnkn.com&qianzhui=www&cid=liuliangji&page=1
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING m=pc&bs=kehu&yuming=hnbnkn.com&qianzhui=www&cid=liuliangji&page=1
REDIRECT_URL /home/Listnews/index
REMOTE_PORT 49906
SCRIPT_FILENAME /www/wwwroot/bms/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/bms
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/bms
REMOTE_ADDR 162.158.119.25
SERVER_PORT 80
SERVER_ADDR 172.31.244.42
SERVER_NAME kehu.88559.net
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at kehu.88559.net Port 80</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_CDN_LOOP cloudflare
HTTP_CF_CONNECTING_IP 182.61.164.223
HTTP_REFERER _REFERER_
HTTP_ACCEPT */*
HTTP_USER_AGENT _USERAGENT_
HTTP_CF_VISITOR {"scheme":"http"}
HTTP_X_FORWARDED_PROTO http
HTTP_CF_RAY 526e4f940a73d645-NRT
HTTP_X_FORWARDED_FOR 182.61.164.223
HTTP_CF_IPCOUNTRY CN
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION Keep-Alive
HTTP_HOST kehu.88559.net
proxy-nokeepalive 1
REDIRECT_STATUS 200
REDIRECT_PATH_INFO home/Listnews/index
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1571273767.2644
REQUEST_TIME 1571273767
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/bms/app/
QINIU_FUNCTIONS_VERSION 7.2.3
__ROOT__
4.320607s
159彩票开户 上海时时乐 极速快3 韩国1.5分彩 上海时时乐 极速飞艇平台 荣鼎娱乐 山东群英会app 澳洲幸运10开奖结果 澳洲幸运10开奖结果