[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() in Mysql.php line 65
  3. at Mysql->getFields() in Query.php line 1921
  4. at Query->getTableInfo() in Query.php line 1955
  5. at Query->getPk() in Query.php line 2639
  6. at Query->find() in Post.php line 19
  7. at Post->index()
  8. at ReflectionMethod->invokeArgs() in App.php line 343
  9. at App::invokeMethod() in App.php line 611
  10. at App::module() in App.php line 456
  11. at App::exec() in App.php line 139
  12. at App::run() in start.php line 19
  13. at require('/www/wwwroot/feitian...') in s.php line 57

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 `fa_article`
Database Config
type mysql
hostname 127.0.0.1
database feitianyl_com
hostport
dsn
params []
charset utf8mb4
prefix fa_
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 false
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.feitianyl.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/buy_538580566013
REDIRECT_STATUS
200
SERVER_NAME
feitianyl.com
SERVER_PORT
80
SERVER_ADDR
122.10.17.231
REMOTE_PORT
49558
REMOTE_ADDR
54.175.120.161
SERVER_SOFTWARE
nginx/1.21.4
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/feitianyl.com/public
DOCUMENT_URI
/s.php
REQUEST_URI
/buy_538580566013
SCRIPT_NAME
/s.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/buy_538580566013
SCRIPT_FILENAME
/www/wwwroot/feitianyl.com/public/s.php
FCGI_ROLE
RESPONDER
PHP_SELF
/s.php
REQUEST_TIME_FLOAT
1711717201.775
REQUEST_TIME
1711717201
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/feitianyl.com/public/../application/
THINK_VERSION
5.0.25
THINK_START_TIME
1711717201.7762
THINK_START_MEM
418216
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/feitianyl.com/thinkphp/
LIB_PATH
/www/wwwroot/feitianyl.com/thinkphp/library/
CORE_PATH
/www/wwwroot/feitianyl.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/feitianyl.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/feitianyl.com/
EXTEND_PATH
/www/wwwroot/feitianyl.com/extend/
VENDOR_PATH
/www/wwwroot/feitianyl.com/vendor/
RUNTIME_PATH
/www/wwwroot/feitianyl.com/runtime/
LOG_PATH
/www/wwwroot/feitianyl.com/runtime/log/
CACHE_PATH
/www/wwwroot/feitianyl.com/runtime/cache/
TEMP_PATH
/www/wwwroot/feitianyl.com/runtime/temp/
CONF_PATH
/www/wwwroot/feitianyl.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
HTMLPURIFIER_PREFIX
/www/wwwroot/feitianyl.com/vendor/ezyang/htmlpurifier/library
ADDON_PATH
/www/wwwroot/feitianyl.com/addons/