[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' => ['140154', 1]], false, false) in Query.php line 227
  3. at Query->query('SELECT * FROM `qb_cm...', ['where_AND_id' => ['140154', 1]], false, false) in Query.php line 2652
  4. at Query->find() in C.php line 428
  5. at C::getMidById('140154') in C.php line 184
  6. at C->show('140154') in Content.php line 168
  7. at Content->show('140154', '')
  8. at ReflectionMethod->invokeArgs(object(Content), ['140154', '']) in App.php line 348
  9. at App::invokeMethod([object(Content), 'show'], []) in App.php line 612
  10. at App::module(['cms', 'content', 'show'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 461
  11. at App::exec(['type' => 'module', 'module' => ['cms', 'content', 'show'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  12. at App::run() in start.php line 19
  13. 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` = 140154 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
91cd799fe4
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.wanxiangsucai.com
PATH_INFO
/read/cv140154
REDIRECT_STATUS
200
SERVER_NAME
daohang.wanxiangsucai.com
SERVER_PORT
443
SERVER_ADDR
219.148.38.88
REMOTE_PORT
52466
REMOTE_ADDR
54.205.179.155
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
/read/cv140154
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/read/cv140154
SCRIPT_FILENAME
/www/www.wanxiangsucai.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710826801.5606
REQUEST_TIME
1710826801
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
1710826801.5609
THINK_START_MEM
405192
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
PAGE_TYPE
show