[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' => [['=', 143678]]]], 'where' => ['AND' => ['id' => ['=', 143678]]], 'table' => 'qb_cms_content', ...]) in Query.php line 2605
  6. at Query->find() in C.php line 428
  7. at C::getMidById(143678) in C.php line 582
  8. at C::getInfoByid(143678, true) in Content.php line 163
  9. at Content->info(143678, 'cms', true) in common.php line 77
  10. at fun('Content@info', 143678, 'cms', true) in Info.php line 43
  11. at Info::get_list([10404], '', 0, 0, 50, false) in Tagfun.php line 159
  12. at Tagfun->getCorrelation('芦荟胶', 50, false, '', 0, 0) in common.php line 77
  13. at fun('Tagfun@getCorrelatio...', '芦荟胶', 50) in 46f582cee3107856fa7cac95abb2699f.php line 305
  14. at include('/www/wwwroot/www.e-e...') in File.php line 53
  15. at File->read('/www/wwwroot/www.e-e...', ['auto_tpl_base_layout' => '/www/wwwroot/www.e-e...', 'admin' => false, 'userdb' => false, ...]) in Template.php line 189
  16. at Template->fetch('/www/wwwroot/www.e-e...', ['auto_tpl_base_layout' => '/www/wwwroot/www.e-e...', 'admin' => false, 'userdb' => false, ...], []) in Think.php line 86
  17. at Think->fetch('/www/wwwroot/www.e-e...', ['auto_tpl_base_layout' => '/www/wwwroot/www.e-e...', 'admin' => false, 'userdb' => false, ...], []) in View.php line 163
  18. at View->fetch('/www/wwwroot/www.e-e...', ['auto_tpl_base_layout' => '/www/wwwroot/www.e-e...', 'admin' => false, 'userdb' => false, ...], ['__ROOT__' => '/', '__URL__' => '//booking/content', '__STATIC__' => '/public/static', ...], []) in Controller.php line 120
  19. at Controller->fetch('/www/wwwroot/www.e-e...', ['admin' => false, 'userdb' => false, 'timestamp' => 1701250295, ...], [], []) in Base.php line 424
  20. at Base->fetch('/www/wwwroot/www.e-e...', ['admin' => false, 'userdb' => false, 'timestamp' => 1701250295, ...]) in C.php line 165
  21. at C->index('419', 6) in Content.php line 18
  22. at Content->index('419', 0)
  23. at ReflectionMethod->invokeArgs(object(Content), ['419', 0]) in App.php line 348
  24. at App::invokeMethod([object(Content), 'index'], []) in App.php line 612
  25. at App::module(['booking', 'content', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 461
  26. at App::exec(['type' => 'module', 'module' => ['booking', 'content', 'index'], '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
f3dddaed5e
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/booking/list-419.html
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/booking/list-419.html
REMOTE_PORT
60560
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/booking/list-419.html
SCRIPT_URL
/booking/list-419.html
REDIRECT_STATUS
200
REDIRECT_SSL_TLS_SNI
www.haotaotuan.com
REDIRECT_HTTPS
on
REDIRECT_PATH_INFO
booking/list-419.html
REDIRECT_SCRIPT_URI
http://www.haotaotuan.com/booking/list-419.html
REDIRECT_SCRIPT_URL
/booking/list-419.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1701250295.986
REQUEST_TIME
1701250295
PATH_INFO
booking/list-419.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.haotaotuan.com/application/
ENTRANCE
index
THINK_VERSION
5.0.18
THINK_START_TIME
1701250295.9863
THINK_START_MEM
400880
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
PAGE_TYPE
list
IN_TEMPLATE
true