[10501] PDOException in Connection.php line 388

SQLSTATE[HY000]: General error: 145 Table './wanxiangsucai/qb_cms_content' is marked as crashed and should be repaired

  1. $this->PDOStatement->execute();
  2. // 调试结束
  3. $this->debug(false);
  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 388
  2. at Connection->query('SELECT * FROM `qb_cm...', ['where_AND_id' => [125472, 1]], false, false) in Query.php line 227
  3. at Query->query('SELECT * FROM `qb_cm...', ['where_AND_id' => [125472, 1]], false, false) in Query.php line 2652
  4. at Query->find() in C.php line 428
  5. at C::getMidById(125472) in C.php line 582
  6. at C::getInfoByid(125472, true) in Content.php line 163
  7. at Content::info(125472, 'cms', true) in Tagfun.php line 105
  8. at Tagfun::content(['id' => 375073, 'aid' => 125472, 'fid' => 28, ...], true) in Tagfun.php line 118
  9. at Tagfun->topic(['id' => 375073, 'aid' => 125472, 'fid' => 28, ...], true) in common.php line 77
  10. at fun('Tagfun@topic', ['id' => 375073, 'aid' => 125472, 'fid' => 28, ...]) in 778f4e86263bb9df066b372dced6d370.php line 544
  11. at include('/www/www.wanxiangsuc...') in File.php line 53
  12. at File->read('/www/www.wanxiangsuc...', ['auto_tpl_base_layout' => '/www/www.wanxiangsuc...', 'tid' => '164732', 't_list' => ['id' => 164732, 'tagname' => '巫师3次世代mod', 'tagcontent' => '', ...], ...]) in Template.php line 189
  13. at Template->fetch('/www/www.wanxiangsuc...', ['auto_tpl_base_layout' => '/www/www.wanxiangsuc...', 'tid' => '164732', 't_list' => ['id' => 164732, 'tagname' => '巫师3次世代mod', 'tagcontent' => '', ...], ...], []) in Think.php line 86
  14. at Think->fetch('/www/www.wanxiangsuc...', ['auto_tpl_base_layout' => '/www/www.wanxiangsuc...', 'tid' => '164732', 't_list' => ['id' => 164732, 'tagname' => '巫师3次世代mod', 'tagcontent' => '', ...], ...], []) in View.php line 163
  15. at View->fetch('/www/www.wanxiangsuc...', ['auto_tpl_base_layout' => '/www/www.wanxiangsuc...', 'tid' => '164732', 't_list' => ['id' => 164732, 'tagname' => '巫师3次世代mod', 'tagcontent' => '', ...], ...], ['__ROOT__' => '', '__URL__' => '/index.php/index/plu...', '__STATIC__' => '/public/static', ...], []) in Controller.php line 120
  16. at Controller->fetch('/www/www.wanxiangsuc...', ['admin' => false, 'userdb' => false, 'timestamp' => 1710819821, ...], [], []) in Base.php line 424
  17. at Base->fetch('/www/www.wanxiangsuc...') in Taglist.php line 61
  18. at Taglist->index('164732') in common.php line 462
  19. at plugin_action('kwtags', 'taglist', 'index', ['tid' => '164732']) in Plugin.php line 40
  20. at Plugin->execute()
  21. at ReflectionMethod->invokeArgs(object(Plugin), []) in App.php line 348
  22. at App::invokeMethod([object(Plugin), 'execute'], []) in App.php line 612
  23. at App::module(['index', 'plugin', 'execute'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 461
  24. at App::exec(['type' => 'module', 'module' => ['index', 'plugin', 'execute'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  25. at App::run() in start.php line 19
  26. at require('/www/www.wanxiangsuc...') in index.php line 32

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 145
Driver Error Message Table './wanxiangsucai/qb_cms_content' is marked as crashed and should be repaired
Database Status
Error Code 10501
Error Message SQLSTATE[HY000]: General error: 145 Table './wanxiangsucai/qb_cms_content' is marked as crashed and should be repaired
Error SQL SELECT * FROM `qb_cms_content` WHERE `id` = 125472 LIMIT 1
Database Config
type mysql
hostname 127.0.0.1
database wanxiangsucai
hostport 3333
dsn
params []
charset utf8
prefix qb_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
fields_strict false
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

user_sid
a1d9a77bbd
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.wanxiangsucai.com
PATH_INFO
/tags/164732
REDIRECT_STATUS
200
SERVER_NAME
daohang.wanxiangsucai.com
SERVER_PORT
443
SERVER_ADDR
219.148.38.88
REMOTE_PORT
58508
REMOTE_ADDR
54.235.6.60
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/www.wanxiangsucai.com
DOCUMENT_URI
/index.php
REQUEST_URI
/tags/164732
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/tags/164732
SCRIPT_FILENAME
/www/www.wanxiangsucai.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710819821.7299
REQUEST_TIME
1710819821
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/www.wanxiangsucai.com/application/
HTML_PATH
./HTML/
ENTRANCE
index
THINK_VERSION
5.0.18
THINK_START_TIME
1710819821.7303
THINK_START_MEM
405176
EXT
.php
DS
/
THINK_PATH
/www/www.wanxiangsucai.com/thinkphp/
LIB_PATH
/www/www.wanxiangsucai.com/thinkphp/library/
CORE_PATH
/www/www.wanxiangsucai.com/thinkphp/library/think/
TRAIT_PATH
/www/www.wanxiangsucai.com/thinkphp/library/traits/
ROOT_PATH
/www/www.wanxiangsucai.com/
EXTEND_PATH
/www/www.wanxiangsucai.com/extend/
VENDOR_PATH
/www/www.wanxiangsucai.com/vendor/
RUNTIME_PATH
/www/www.wanxiangsucai.com/runtime/
LOG_PATH
/www/www.wanxiangsucai.com/runtime/log/
CACHE_PATH
/www/www.wanxiangsucai.com/runtime/cache/
TEMP_PATH
/www/www.wanxiangsucai.com/runtime/temp/
CONF_PATH
/www/www.wanxiangsucai.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/www.wanxiangsucai.com/vendor/ezyang/htmlpurifier/library
FIRST_LOAD
true
TEMPLATE_PATH
/www/www.wanxiangsucai.com/template/
IS_POST
false
PUBLIC_URL
/public/
PUBLIC_PATH
/www/www.wanxiangsucai.com/public/
UPLOAD_URL
/public/uploads/
UPLOAD_PATH
/www/www.wanxiangsucai.com/public/uploads/
STATIC_URL
/public/static/
STATIC_PATH
/www/www.wanxiangsucai.com/public/static/
PLUGINS_PATH
/www/www.wanxiangsucai.com/plugins/
CACHE_DIR
/www/www.wanxiangsucai.com/runtime/
QUN
万象圈子
ADMIN_FILENAME
heng.php
QINIU_FUNCTIONS_VERSION
7.2.3
LOAD_INDEXBASE
true
IN_PLUGIN
kwtags#taglist#index
IN_TEMPLATE
true