[HY000] PDOException in Mysql.php line 60

SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine

  1. {
  2. $this->initConnect(true);
  3. list($tableName) = explode(' ', $tableName);
  4. if (strpos($tableName, '.')) {
  5. $tableName = str_replace('.', '`.`', $tableName);
  6. }
  7. $sql = 'SHOW COLUMNS FROM `' . $tableName . '`';
  8. // 调试开始
  9. $this->debug(true);
  10. $pdo = $this->linkID->query($sql);
  11. // 调试结束
  12. $this->debug(false, $sql);
  13. $result = $pdo->fetchAll(PDO::FETCH_ASSOC);
  14. $info = [];
  15. if ($result) {
  16. foreach ($result as $key => $val) {
  17. $val = array_change_key_case($val);
  18. $info[$val['field']] = [
  19. 'name' => $val['field'],

Call Stack

  1. in Mysql.php line 60
  2. at PDO->query('SHOW COLUMNS FROM `a...') in Mysql.php line 60
  3. at Mysql->getFields('als_adsense') in Query.php line 1397
  4. at Query->getTableInfo('als_adsense', 'type') in Query.php line 1445
  5. at Query->getFieldsType(['where' => ['AND' => ['position_cate' => ['eq', 'IMG_BANNER'], 'status' => ['eq', 1]]], 'order' => 'sort', 'table' => 'als_adsense', ...]) in Query.php line 1451
  6. at Query->getFieldsBind(['where' => ['AND' => ['position_cate' => ['eq', 'IMG_BANNER'], 'status' => ['eq', 1]]], 'order' => 'sort', 'table' => 'als_adsense', ...]) in Builder.php line 230
  7. at Builder->buildWhere(['AND' => ['position_cate' => ['eq', 'IMG_BANNER'], 'status' => ['eq', 1]]], ['where' => ['AND' => ['position_cate' => ['eq', 'IMG_BANNER'], 'status' => ['eq', 1]]], 'order' => 'sort', 'table' => 'als_adsense', ...]) in Builder.php line 208
  8. at Builder->parseWhere(['AND' => ['position_cate' => ['eq', 'IMG_BANNER'], 'status' => ['eq', 1]]], ['where' => ['AND' => ['position_cate' => ['eq', 'IMG_BANNER'], 'status' => ['eq', 1]]], 'order' => 'sort', 'table' => 'als_adsense', ...]) in Builder.php line 600
  9. at Builder->select(['where' => ['AND' => ['position_cate' => ['eq', 'IMG_BANNER'], 'status' => ['eq', 1]]], 'order' => 'sort', 'table' => 'als_adsense', ...]) in Query.php line 1902
  10. at Query->select() in HomepageController.php line 11
  11. at HomepageController->index()
  12. at ReflectionMethod->invokeArgs(object(HomepageController), []) in App.php line 230
  13. at App::invokeMethod([object(HomepageController), 'index']) in App.php line 399
  14. at App::module(['', null, null], ['app_namespace' => 'application', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 138
  15. at App::run() in start.php line 18
  16. at require('/var/www/alsweb/thin...') in index.php line 21

Environment Variables

GET Data
route product/product
product_id 1009
tag CooCoo controller
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST www.alsrobot.com
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.alsrobot.com
SERVER_ADDR 10.45.24.120
SERVER_PORT 80
REMOTE_ADDR 18.209.209.28
DOCUMENT_ROOT /var/www/alsweb/public
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/alsweb/public
SERVER_ADMIN zy2016@foxmail.com
SCRIPT_FILENAME /var/www/alsweb/public/index.php
REMOTE_PORT 34426
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING route=product/product&product_id=1009&tag=CooCoo+controller
REQUEST_URI /index.php?route=product/product&product_id=1009&tag=CooCoo+controller
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711663094.751
REQUEST_TIME 1711663094
Environment Variablesempty
ThinkPHP Constantsempty