#0 [10501]PDOException in PDOConnection.php line 768

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

  1. return $this->PDOStatement;
  2. } catch (\Throwable | \Exception $e) {
  3. if ($this->reConnectTimes < 4 && $this->isBreak($e)) {
  4. ++$this->reConnectTimes;
  5. return $this->close()->getPDOStatement($sql, $bind, $master, $procedure);
  6. }
  7. if ($e instanceof \PDOException) {
  8. throw new PDOException($e, $this->config, $this->getLastsql());
  9. } else {
  10. throw $e;
  11. }
  12. }
  13. }
  14. /**
  15. * 执行语句
  16. * @access protected

Call Stack

  1. in PDOConnection.php line 768
  2. at PDOConnection->getPDOStatement() in PDOConnection.php line 688
  3. at PDOConnection->pdoQuery() in PDOConnection.php line 886
  4. at PDOConnection->select() in BaseQuery.php line 1090
  5. at BaseQuery->select() in Anlidetail.php line 69
  6. at Anlidetail->index()
  7. at ReflectionMethod->invokeArgs() in Container.php line 343
  8. at Container->invokeReflectMethod() in Controller.php line 110
  9. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  10. at Pipeline->think\{closure}() in Pipeline.php line 66
  11. at Pipeline->then() in Controller.php line 113
  12. at Controller->exec() in Dispatch.php line 89
  13. at Dispatch->run() in Route.php line 772
  14. at Route->think\{closure}() in Pipeline.php line 59
  15. at Pipeline->think\{closure}() in Pipeline.php line 66
  16. at Pipeline->then() in Route.php line 773
  17. at Route->dispatch() in Http.php line 216
  18. at Http->dispatchToRoute() in Http.php line 206
  19. at Http->think\{closure}() in Pipeline.php line 59
  20. at Pipeline->think\{closure}() in MultiApp.php line 71
  21. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  22. at Pipeline->think\{closure}() in Pipeline.php line 66
  23. at Pipeline->then() in MultiApp.php line 72
  24. at MultiApp->handle()
  25. at call_user_func() in Middleware.php line 142
  26. at Middleware->think\{closure}() in Pipeline.php line 85
  27. at Pipeline->think\{closure}() in SessionInit.php line 67
  28. at SessionInit->handle()
  29. at call_user_func() in Middleware.php line 142
  30. at Middleware->think\{closure}() in Pipeline.php line 85
  31. at Pipeline->think\{closure}() in TraceDebug.php line 71
  32. at TraceDebug->handle()
  33. at call_user_func() in Middleware.php line 142
  34. at Middleware->think\{closure}() in Pipeline.php line 85
  35. at Pipeline->think\{closure}() in Pipeline.php line 66
  36. at Pipeline->then() in Http.php line 207
  37. at Http->runWithRequest() in Http.php line 170
  38. at Http->run() in index.php line 37

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 2006
Driver Error Message MySQL server has gone away
Database Status
Error Code 10501
Error Message SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
Error SQL SELECT * FROM `pcf_archives` WHERE `channel` = 1 AND `typeid` = 278 ORDER BY `sort_order` LIMIT 4
Database Config
type mysql
hostname 127.0.0.1
database xfz3_tywl88_com
hostport 3306
dsn
params []
charset utf8
prefix pcf_
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
fields_cache false
trigger_sql false
builder
query
break_reconnect false
break_match_str []
schema_cache_path /www/wwwroot/xfz3.tywl88.com/runtime/schema/

Environment Variables

GET Data
seoarea 460
dizhi sandaohexiang
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_X_FORWARDED_FOR 36.62.129.15
HTTP_CLIENT_IP 36.62.129.15
HTTP_USER_AGENT Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
HTTP_ACCEPT_LANGUAGE zh-Hans-CN,zh-Hans;q=0.8,en-US;q=0.5,en;q=0.3
HTTP_PRAGMA no-cache
HTTP_ACCEPT text/html, application/xhtml+xml, */*
HTTP_CONNECTION Keep-Alive
HTTP_REFERER https://s0.wp.com/mshots/v1/
HTTP_HOST www.tywl88.com
PATH_INFO /anlidetail
REDIRECT_STATUS 200
SERVER_NAME xfz3.tywl88.com
SERVER_PORT 80
SERVER_ADDR 192.168.0.237
REMOTE_PORT 56586
REMOTE_ADDR 110.41.4.233
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/xfz3.tywl88.com/public
DOCUMENT_URI /index.php/anlidetail
REQUEST_URI /index.php/anlidetail?seoarea=460&dizhi=sandaohexiang
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING seoarea=460&dizhi=sandaohexiang
SCRIPT_FILENAME /www/wwwroot/xfz3.tywl88.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php/anlidetail
REQUEST_TIME_FLOAT 1698474212.1261
REQUEST_TIME 1698474212
4.526056s