[10501] PDOException in Connection.php line 385

SQLSTATE[HY000]: General error: 145 Table '.\an_bi_com\user_custom_list' is marked as crashed and should be repaired

  1. $this->PDOStatement->execute();
  2. // 调试结束
  3. $this->debug(false, '', $master);
  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 385
  2. at Connection->query('SHOW COLUMNS FROM `u...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('`user_custom_list`') in Query.php line 1921
  4. at Query->getTableInfo('user_custom_list', 'type') in Query.php line 1969
  5. at Query->getFieldsType('user_custom_list') in Query.php line 1975
  6. at Query->getFieldsBind('user_custom_list') in Builder.php line 270
  7. at Builder->buildWhere(['AND' => ['cus_uid' => ['eq', 600325]]], ['table' => 'user_custom_list', 'multi' => ['AND' => ['cus_uid' => [['eq', 600325]]]], 'where' => ['AND' => ['cus_uid' => ['eq', 600325]]], ...]) in Builder.php line 240
  8. at Builder->parseWhere(['AND' => ['cus_uid' => ['eq', 600325]]], ['table' => 'user_custom_list', 'multi' => ['AND' => ['cus_uid' => [['eq', 600325]]]], 'where' => ['AND' => ['cus_uid' => ['eq', 600325]]], ...]) in Builder.php line 719
  9. at Builder->select(['table' => 'user_custom_list', 'multi' => ['AND' => ['cus_uid' => [['eq', 600325]]]], 'where' => ['AND' => ['cus_uid' => ['eq', 600325]]], ...]) in Query.php line 2511
  10. at Query->select() in Production.php line 1078
  11. at Production->info()
  12. at ReflectionMethod->invokeArgs(object(Production), []) in App.php line 343
  13. at App::invokeMethod([object(Production), 'info'], []) in App.php line 611
  14. at App::module(['index', 'Production', 'info'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  15. at App::exec(['type' => 'module', 'module' => ['index', 'Production', 'info']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  16. at App::run() in start.php line 19
  17. at require('C:\Website\AbEducati...') in index.php line 19

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 145
Driver Error Message Table '.\an_bi_com\user_custom_list' is marked as crashed and should be repaired
Database Status
Error Code 10501
Error Message SQLSTATE[HY000]: General error: 145 Table '.\an_bi_com\user_custom_list' is marked as crashed and should be repaired
Error SQL SHOW COLUMNS FROM `user_custom_list`
Database Config
type mysql
hostname 127.0.0.1
database an_bi_com
hostport 3306
dsn
params []
charset utf8
prefix
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
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
empty
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-61012420-0ace-484e-88c1-3f3a4ddebf2c
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\AnBiCom\AnBiCom.config
APP_POOL_ID
AnBiCom
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WINALIY-HSU26NS
ComSpec
C:\Windows\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
2
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;C:\Program Files\mysql-5.7.28-winx64\bin;C:\Program Files\VisualSVN Server\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Redis\;C:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\nodejs\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 7, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5507
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\PowerShell\Modules\;C:\Program Files\VisualSVN Server\PowerShellModules
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
WINALIY-HSU26NS$
USERPROFILE
C:\Windows\system32\config\systemprofile
VISUALSVN_SERVER
C:\Program Files\VisualSVN Server\
windir
C:\Windows
WXDRIVE_START_ARGS
--wxdrive-setting=0 --disable-gpu --disable-software-rasterizer --enable-features=NetworkServiceInProcess
ORIG_PATH_INFO
/index.php/Production/info/id/233
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
an-bi.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
C:\Website\AbEducation\an-bi.com\public\index.php
REQUEST_URI
/Production/info/id/233
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
55438
REMOTE_HOST
44.223.31.148
REMOTE_ADDR
44.223.31.148
QUERY_STRING
PATH_TRANSLATED
C:\Website\AbEducation\an-bi.com\public\index.php\Production\info\id\233
PATH_INFO
/Production/info/id/233
LOGON_USER
LOCAL_ADDR
172.18.190.95
INSTANCE_META_PATH
/LM/W3SVC/3
INSTANCE_NAME
ANBICOM
INSTANCE_ID
3
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
C:\Website\AbEducation\an-bi.com\public
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
C:\Website\AbEducation\an-bi.com\public\
APPL_MD_PATH
/LM/W3SVC/3/ROOT
IIS_UrlRewriteModule
7,1,1993,2351
WEBSOCKET_VERSION
13
UNENCODED_URL
/Production/info/id/233
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/Production/info/id/233
HTTP_USER_AGENT
claudebot
HTTP_HOST
an-bi.com
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/Production/info/id/233
REQUEST_TIME_FLOAT
1711667318.8639
REQUEST_TIME
1711667318
Environment Variables
empty

ThinkPHP Constants

APP_PATH
C:\Website\AbEducation\an-bi.com\public/../application/
BIND_MODULE
index
THINK_VERSION
5.0.24
THINK_START_TIME
1711667318.8645
THINK_START_MEM
400680
EXT
.php
DS
\
THINK_PATH
C:\Website\AbEducation\an-bi.com\thinkphp\
LIB_PATH
C:\Website\AbEducation\an-bi.com\thinkphp\library\
CORE_PATH
C:\Website\AbEducation\an-bi.com\thinkphp\library\think\
TRAIT_PATH
C:\Website\AbEducation\an-bi.com\thinkphp\library\traits\
ROOT_PATH
C:\Website\AbEducation\an-bi.com\
EXTEND_PATH
C:\Website\AbEducation\an-bi.com\extend\
VENDOR_PATH
C:\Website\AbEducation\an-bi.com\vendor\
RUNTIME_PATH
C:\Website\AbEducation\an-bi.com\runtime\
LOG_PATH
C:\Website\AbEducation\an-bi.com\runtime\log\
CACHE_PATH
C:\Website\AbEducation\an-bi.com\runtime\cache\
TEMP_PATH
C:\Website\AbEducation\an-bi.com\runtime\temp\
CONF_PATH
C:\Website\AbEducation\an-bi.com\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
QINIU_FUNCTIONS_VERSION
7.2.10