[10501] PDOException in Connection.php line 388

SQLSTATE[HY000]: General error: 145 Table './www_e_eje_com/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('SHOW COLUMNS FROM `q...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('`qb_cms_content`') in Query.php line 1896
  4. at Query->getTableInfo('qb_cms_content', 'pk') in Query.php line 1930
  5. at Query->getPk(['multi' => ['AND' => ['id' => [['=', 323180]]]], 'where' => ['AND' => ['id' => ['=', 323180]]], 'table' => 'qb_cms_content', ...]) in Query.php line 2605
  6. at Query->find() in C.php line 428
  7. at C::getMidById(323180) in C.php line 582
  8. at C::getInfoByid(323180, true) in Content.php line 163
  9. at Content::info(323180, 'cms', true) in Tagfun.php line 105
  10. at Tagfun::content(['id' => 688750, 'aid' => 323180, 'fid' => 24, ...], true) in Tagfun.php line 118
  11. at Tagfun->topic(['id' => 688750, 'aid' => 323180, 'fid' => 24, ...], true) in common.php line 77
  12. at fun('Tagfun@topic', ['id' => 688750, 'aid' => 323180, 'fid' => 24, ...]) in 17e323836b878a82716600ab8a29da11.php line 219
  13. at include('/www/wwwroot/www.e-e...') in File.php line 53
  14. at File->read('/www/wwwroot/www.e-e...', ['auto_tpl_base_layout' => '/www/wwwroot/www.e-e...', 'tid' => 47494, 't_list' => ['id' => 47494, 'tagname' => '决斗', 'list' => 0, ...], ...]) in Template.php line 189
  15. at Template->fetch('/www/wwwroot/www.e-e...', ['auto_tpl_base_layout' => '/www/wwwroot/www.e-e...', 'tid' => 47494, 't_list' => ['id' => 47494, 'tagname' => '决斗', 'list' => 0, ...], ...], []) in Think.php line 86
  16. at Think->fetch('/www/wwwroot/www.e-e...', ['auto_tpl_base_layout' => '/www/wwwroot/www.e-e...', 'tid' => 47494, 't_list' => ['id' => 47494, 'tagname' => '决斗', 'list' => 0, ...], ...], []) in View.php line 163
  17. at View->fetch('/www/wwwroot/www.e-e...', ['auto_tpl_base_layout' => '/www/wwwroot/www.e-e...', 'tid' => 47494, 't_list' => ['id' => 47494, 'tagname' => '决斗', 'list' => 0, ...], ...], ['__ROOT__' => '', '__URL__' => '/index.php/index/plu...', '__STATIC__' => '/public/static', ...], []) in Controller.php line 120
  18. at Controller->fetch('/www/wwwroot/www.e-e...', ['admin' => false, 'userdb' => false, 'timestamp' => 1701249735, ...], [], []) in Base.php line 424
  19. at Base->fetch('/www/wwwroot/www.e-e...') in Taglist.php line 61
  20. at Taglist->index(47494, '决斗') in common.php line 462
  21. at plugin_action('kwtags', 'taglist', 'index', ['keyword' => '决斗']) in Plugin.php line 40
  22. at Plugin->execute()
  23. at ReflectionMethod->invokeArgs(object(Plugin), []) in App.php line 348
  24. at App::invokeMethod([object(Plugin), 'execute'], []) in App.php line 612
  25. at App::module(['index', 'plugin', 'execute'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 461
  26. at App::exec(['type' => 'module', 'module' => ['index', 'plugin', 'execute'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  27. at App::run() in start.php line 19
  28. at require('/www/wwwroot/www.e-e...') in index.php line 29

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 145
Driver Error Message Table './www_e_eje_com/qb_cms_content' is marked as crashed and should be repaired
Database Status
Error Code 10501
Error Message SQLSTATE[HY000]: General error: 145 Table './www_e_eje_com/qb_cms_content' is marked as crashed and should be repaired
Error SQL SHOW COLUMNS FROM `qb_cms_content`
Database Config
type mysql
hostname localhost
database www_e_eje_com
hostport 8806
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
a47d08b5f7
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/keyword/%E5%86%B3%E6%96%97
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/keyword/决斗
REMOTE_PORT
41326
SCRIPT_FILENAME
/www/wwwroot/www.haotaotuan.com/index.php
SERVER_ADMIN
webmasterexample.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/www.haotaotuan.com/
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/www.haotaotuan.com/
REMOTE_ADDR
23.224.20.170
SERVER_PORT
443
SERVER_ADDR
122.114.12.23
SERVER_NAME
www.haotaotuan.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.haotaotuan.com Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib:/www/server/apache/lib
PATH
/sbin:/usr/sbin:/bin:/usr/bin
HTTP_REFERER
http://www.haotaotuan.com/
HTTP_CLIENT_IP
3.233.221.90
HTTP_X_FORWARDED_FOR
3.233.221.90
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
HTTP_CONNECTION
keep-alive
HTTP_ACCEPT
*/*
HTTP_HOST
www.haotaotuan.com
proxy-nokeepalive
1
SSL_TLS_SNI
www.haotaotuan.com
HTTPS
on
SCRIPT_URI
http://www.haotaotuan.com/keyword/决斗
SCRIPT_URL
/keyword/决斗
REDIRECT_STATUS
200
REDIRECT_SSL_TLS_SNI
www.haotaotuan.com
REDIRECT_HTTPS
on
REDIRECT_PATH_INFO
keyword/决斗
REDIRECT_SCRIPT_URI
http://www.haotaotuan.com/keyword/决斗
REDIRECT_SCRIPT_URL
/keyword/决斗
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1701249735.6464
REQUEST_TIME
1701249735
PATH_INFO
keyword/决斗
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.haotaotuan.com/application/
ENTRANCE
index
THINK_VERSION
5.0.18
THINK_START_TIME
1701249735.6466
THINK_START_MEM
400768
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.haotaotuan.com/thinkphp/
LIB_PATH
/www/wwwroot/www.haotaotuan.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.haotaotuan.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.haotaotuan.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.haotaotuan.com/
EXTEND_PATH
/www/wwwroot/www.haotaotuan.com/extend/
VENDOR_PATH
/www/wwwroot/www.haotaotuan.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.haotaotuan.com/runtime/
LOG_PATH
/www/wwwroot/www.haotaotuan.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.haotaotuan.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.haotaotuan.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.haotaotuan.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/wwwroot/www.haotaotuan.com/vendor/ezyang/htmlpurifier/library
FIRST_LOAD
true
TEMPLATE_PATH
/www/wwwroot/www.haotaotuan.com/template/
IS_POST
false
PUBLIC_URL
/public/
PUBLIC_PATH
/www/wwwroot/www.haotaotuan.com/public/
UPLOAD_URL
/public/uploads/
UPLOAD_PATH
/www/wwwroot/www.haotaotuan.com/public/uploads/
STATIC_URL
/public/static/
STATIC_PATH
/www/wwwroot/www.haotaotuan.com/public/static/
PLUGINS_PATH
/www/wwwroot/www.haotaotuan.com/plugins/
CACHE_DIR
/www/wwwroot/www.haotaotuan.com/runtime/
QUN
名片
ADMIN_FILENAME
adminesing.php
LOAD_INDEXBASE
true
IN_PLUGIN
kwtags#taglist#index
IN_TEMPLATE
true