[10501] PDOException in Connection.php line 399

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

  1. $this->PDOStatement->execute();
  2. // 调试结束
  3. $this->debug(false);
  4. // 返回结果集
  5. return $this->getResult($pdo, $procedure);
  6. } catch (\PDOException $e) {
  7. if ($this->config['break_reconnect'] && $this->isBreak($e)) {
  8. return $this->close()->query($sql, $bind, $master, $pdo);
  9. }
  10. throw new PDOException($e, $this->config, $this->getLastsql());
  11. }
  12. }
  13. /**
  14. * 执行语句
  15. * @access public
  16. * @param string $sql sql指令
  17. * @param array $bind 参数绑定
  18. * @return int

Call Stack

  1. in Connection.php line 399
  2. at Connection->query('SELECT `game_id`,`ic...', ['where_is_show' => [1, 1]], false, false) in Query.php line 225
  3. at Query->query('SELECT `game_id`,`ic...', ['where_is_show' => [1, 1]], false, false) in Query.php line 2296
  4. at Query->select() in Index.php line 873
  5. at Index->detail()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 224
  7. at App::invokeMethod([object(Index), 'detail'], []) in App.php line 389
  8. at App::module(['front', 'index', 'detail'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 130
  9. at App::run() in start.php line 18
  10. at require('/home/wwwroot/kolaga...') in index.php line 23

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 1030
Driver Error Message Got error -1 from storage engine
Database Status
Error Code 10501
Error Message SQLSTATE[HY000]: General error: 1030 Got error -1 from storage engine
Error SQL SELECT `game_id`,`icon`,`name`,`url_key`,`tags` FROM `game` WHERE `is_show` = 1 ORDER BY rand() LIMIT 0,100
Database Config
type mysql
hostname 127.0.0.1
database kolagames
username kolagames
password 111111
hostport
dsn
params []
charset utf8mb4
prefix
debug true
deploy 0
rw_separate false
master_num 1
slave_no
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

key
Relic-Runway
POST Data
empty
Files
empty

Cookies

cf_clearance
wWGHysaLPfJTWYUx2W7OzbgQKeBZpV0e_4YaT7.rGfY-1713277008-1.0.1.1-.R1jA7HXZogD709gFDZ3Y8o8G3soirdiW4XqoqfeYjl1gtObGD2uTl5sR27f84fSop1T.CcmB4pScX6fnUWiMw
play_history
285,11466,3852,
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/home/wwwroot/kolagames.com/www/index.php
QUERY_STRING
s=index/detail&key=Relic-Runway
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/game/Relic-Runway
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/home/wwwroot/kolagames.com/www
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.10.0
REMOTE_ADDR
42.115.92.91
REMOTE_PORT
SERVER_ADDR
104.236.55.116
SERVER_PORT
80
SERVER_NAME
kolagames.com
REDIRECT_STATUS
200
HTTP_HOST
kolagames.com
HTTP_CONNECTION
Keep-Alive
HTTP_ACCEPT_ENCODING
gzip, br
HTTP_X_FORWARDED_FOR
42.115.92.91
HTTP_CF_RAY
8754dcc5ab2684bd-EWR
HTTP_X_FORWARDED_PROTO
https
HTTP_CF_VISITOR
{"scheme":"https"}
HTTP_COOKIE
cf_clearance=wWGHysaLPfJTWYUx2W7OzbgQKeBZpV0e_4YaT7.rGfY-1713277008-1.0.1.1-.R1jA7HXZogD709gFDZ3Y8o8G3soirdiW4XqoqfeYjl1gtObGD2uTl5sR27f84fSop1T.CcmB4pScX6fnUWiMw; play_history=285%2C11466%2C3852%2C
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.0 Safari/537.36
HTTP_CF_CONNECTING_IP
42.115.92.91
HTTP_CDN_LOOP
cloudflare
HTTP_CF_IPCOUNTRY
VN
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1713277712.4029
REQUEST_TIME
1713277712
PATH_INFO
index/detail
Environment Variables
empty

ThinkPHP Constants

BIND_MODULE
front
TMPL_PATH
/home/wwwroot/kolagames.com/www/../template/
APP_PATH
/home/wwwroot/kolagames.com/www/../application/
THINK_VERSION
5.0.7
THINK_START_TIME
1713277712.4034
THINK_START_MEM
268024
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/kolagames.com/thinkphp/
LIB_PATH
/home/wwwroot/kolagames.com/thinkphp/library/
CORE_PATH
/home/wwwroot/kolagames.com/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/kolagames.com/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/kolagames.com/
EXTEND_PATH
/home/wwwroot/kolagames.com/extend/
VENDOR_PATH
/home/wwwroot/kolagames.com/vendor/
RUNTIME_PATH
/home/wwwroot/kolagames.com/runtime/
LOG_PATH
/home/wwwroot/kolagames.com/runtime/log/
CACHE_PATH
/home/wwwroot/kolagames.com/runtime/cache/
TEMP_PATH
/home/wwwroot/kolagames.com/runtime/temp/
CONF_PATH
/home/wwwroot/kolagames.com/www/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
UPLOAD_PATH
/home/wwwroot/kolagames.com/public/uploads
STATIC_URL
https://cdn1.hoopgame.net
ASSETS_URL
/assets/