[10501] PDOException in Connection.php line 385

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

  1. $this->PDOStatement->execute();
  2. // 调试结束
  3. $this->debug(false, '', $master);
  4. // 返回结果集
  5. return $this->getResult($pdo, $procedure);
  6. } catch (\PDOException $e) {
  7. if ($this->isBreak($e)) {
  8. return $this->close()->query($sql, $bind, $master, $pdo);
  9. }
  10. throw new PDOException($e, $this->config, $this->getLastsql());
  11. } catch (\Throwable $e) {
  12. if ($this->isBreak($e)) {
  13. return $this->close()->query($sql, $bind, $master, $pdo);
  14. }
  15. throw $e;
  16. } catch (\Exception $e) {
  17. if ($this->isBreak($e)) {
  18. return $this->close()->query($sql, $bind, $master, $pdo);
  19. }

Call Stack

  1. in Connection.php line 385
  2. at Connection->query('SHOW COLUMNS FROM `s...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('`shandao_error_log`') in Query.php line 1921
  4. at Query->getTableInfo('shandao_error_log', 'type') in Query.php line 1969
  5. at Query->getFieldsType('shandao_error_log') in Query.php line 1975
  6. at Query->getFieldsBind('shandao_error_log') in Builder.php line 270
  7. at Builder->buildWhere(['AND' => ['content' => '(url:https://cd.tan-...']], ['multi' => ['AND' => ['content' => ['(url:https://cd.tan-...']]], 'where' => ['AND' => ['content' => '(url:https://cd.tan-...']], 'table' => 'shandao_error_log', ...]) in Builder.php line 240
  8. at Builder->parseWhere(['AND' => ['content' => '(url:https://cd.tan-...']], ['multi' => ['AND' => ['content' => ['(url:https://cd.tan-...']]], 'where' => ['AND' => ['content' => '(url:https://cd.tan-...']], 'table' => 'shandao_error_log', ...]) in Builder.php line 719
  9. at Builder->select(['multi' => ['AND' => ['content' => ['(url:https://cd.tan-...']]], 'where' => ['AND' => ['content' => '(url:https://cd.tan-...']], 'table' => 'shandao_error_log', ...]) in Query.php line 2663
  10. at Query->find(null) in Model.php line 1707
  11. at Model::get(null) in common.php line 2219
  12. at errorLogInsert('(url:https://cd.tan-...') in common.php line 1140
  13. at returnAjax(400, '(url:https://cd.tan-...') in Index.php line 542
  14. at Index->index()
  15. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  16. at App::invokeMethod([object(Index), 'index'], []) in App.php line 611
  17. at App::module(['index', 'index', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  18. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  19. at App::run() in start.php line 19
  20. at require('/www/wwwroot/www.shi...') in index.php line 43

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 SHOW COLUMNS FROM `shandao_error_log`
Database Config
type mysql
hostname sh-cdb-57mw31uy.sql.tencentcdb.com
database shandaoapi
hostport 63611
dsn
params []
charset utf8
prefix shandao_
debug false
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
result_type 2
resultset_type array
auto_timestamp false
datetime_format Y-m-d H:i:s
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

area_code
510112
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT
*/*
HTTP_HOST
cd.tan-dian.cn
PATH_INFO
/sf_510112_1976_8.html
REDIRECT_STATUS
200
SERVER_NAME
*.tan-dian.cn
SERVER_PORT
443
SERVER_ADDR
10.0.16.13
REMOTE_PORT
43788
REMOTE_ADDR
212.64.22.233
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.shifushandao.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/sf_510112_1976_8.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/sf_510112_1976_8.html
SCRIPT_FILENAME
/www/wwwroot/www.shifushandao.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1745552592.6164
REQUEST_TIME
1745552592
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.shifushandao.com/public/../application/
TIME
1745552592
HTML_PATH
./htm
THINK_VERSION
5.0.24
THINK_START_TIME
1745552592.6166
THINK_START_MEM
418152
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.shifushandao.com/thinkphp/
LIB_PATH
/www/wwwroot/www.shifushandao.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.shifushandao.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.shifushandao.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.shifushandao.com/
EXTEND_PATH
/www/wwwroot/www.shifushandao.com/extend/
VENDOR_PATH
/www/wwwroot/www.shifushandao.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.shifushandao.com/runtime/
LOG_PATH
/www/wwwroot/www.shifushandao.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.shifushandao.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.shifushandao.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.shifushandao.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false