[10501] PDOException in Connection.php line 367

SQLSTATE[HY000]: General error: 126 Incorrect key file for table './eland/wt_news.MYI'; try to repair it

  1. $this->bindValue($bind);
  2. // 执行查询
  3. $result = $this->PDOStatement->execute();
  4. // 调试结束
  5. $this->debug(false);
  6. $procedure = in_array(strtolower(substr(trim($sql), 0, 4)), ['call', 'exec']);
  7. return $this->getResult($class, $procedure);
  8. } catch (\PDOException $e) {
  9. if(false === stripos($e->getMessage(), 'server has gone away')) {
  10. throw new PDOException($e, $this->config, $this->queryStr);
  11. }
  12. $this->reconnect();
  13. return $this->query($sql, $bind, $master, $class);
  14. }
  15. }
  16. /**
  17. * 执行语句
  18. * @access public

Call Stack

  1. in Connection.php line 367
  2. at Connection->query('SELECT * FROM `wt_ne...', ['where_uuid' => ['5b9d1fe711bb5', 2]], false, false) in Query.php line 195
  3. at Query->query('SELECT * FROM `wt_ne...', ['where_uuid' => ['5b9d1fe711bb5', 2]], false, false) in Query.php line 1976
  4. at Query->find() in News.php line 85
  5. at News->detail('5b9d1fe711bb5')
  6. at ReflectionMethod->invokeArgs(object(News), ['5b9d1fe711bb5']) in App.php line 229
  7. at App::invokeMethod([object(News), 'detail']) in App.php line 364
  8. at App::module([null, 'news', 'detail'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 137
  9. at App::run() in start.php line 18
  10. at require('/www/wwwroot/elandsc...') in index.php line 13

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 126
Driver Error Message Incorrect key file for table './eland/wt_news.MYI'; try to repair it
Database Status
Error Code 10501
Error Message SQLSTATE[HY000]: General error: 126 Incorrect key file for table './eland/wt_news.MYI'; try to repair it
Error SQL SELECT * FROM `wt_news` WHERE `uuid` = '5b9d1fe711bb5' LIMIT 1
Database Config
type mysql
hostname 127.0.0.1
database eland
username elandscript
password feR5xWJRDXBdt2td
hostport 3306
dsn
params []
charset utf8
prefix wt_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
fields_strict true
resultset_type array
auto_timestamp false
sql_explain false
builder

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
think_var zh-cn
Sessionempty
Server/Request Data
USER www
HOME /home/www
PHP_DATABASE_HOST 127.0.0.1
PHP_DATABASE_DB eland
PHP_DATABASE_ENDB en_eland
PHP_DATABASE_PORT 3306
PHP_DATABASE_USERNAME elandscript
PHP_DATABASE_PASSWORD feR5xWJRDXBdt2td
HTTP_HOST elandscript.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO /p/5b9d1fe711bb5
REDIRECT_STATUS 200
SERVER_NAME www.elandscript.com
SERVER_PORT 80
SERVER_ADDR 172.19.0.14
REMOTE_PORT 18669
REMOTE_ADDR 18.188.20.56
SERVER_SOFTWARE nginx/1.24.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/elandscript/public
DOCUMENT_URI /index.php
REQUEST_URI /p/5b9d1fe711bb5
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/p/5b9d1fe711bb5
SCRIPT_FILENAME /www/wwwroot/elandscript/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1713455602.4441
REQUEST_TIME 1713455602
ALL_HTTP
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/elandscript/public/../application/
CONF_PATH /www/wwwroot/elandscript/public/../config/
EXTEND_PATH /www/wwwroot/elandscript/public/../extend/
VENDOR_PATH /www/wwwroot/elandscript/public/../vendor/
ROOT_PATH /www/wwwroot/elandscript/public/
RUNTIME_PATH /www/wwwroot/elandscript/public/../runtime/
UPLOAD_PATH /www/wwwroot/elandscript/public/../public/upload/
THINK_VERSION 5.0.0
THINK_START_TIME 1713455602.4445
THINK_START_MEM 404016
EXT .php
DS /
THINK_PATH /www/wwwroot/elandscript/thinkphp/
LIB_PATH /www/wwwroot/elandscript/thinkphp/library/
CORE_PATH /www/wwwroot/elandscript/thinkphp/library/think/
TRAIT_PATH /www/wwwroot/elandscript/thinkphp/library/traits/
LOG_PATH /www/wwwroot/elandscript/public/../runtime/log/
CACHE_PATH /www/wwwroot/elandscript/public/../runtime/cache/
TEMP_PATH /www/wwwroot/elandscript/public/../runtime/temp/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
QINIU_FUNCTIONS_VERSION 7.2.5