[10501] PDOException in Connection.php line 390

SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_a5d_0.MYI' (Errcode: 28)

  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 390
  2. at Connection->query('SHOW COLUMNS FROM `z...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('`zq_web_key`') in Query.php line 1883
  4. at Query->getTableInfo('zq_web_key', 'pk') in Query.php line 1917
  5. at Query->getPk(['multi' => ['AND' => ['app_id' => ['161249461']]], 'where' => ['AND' => ['app_id' => '161249461']], 'table' => 'zq_web_key', ...]) in Query.php line 2592
  6. at Query->find() in Update.php line 12
  7. at Update->getUserInfoByAppId('161249461') in Update.php line 17
  8. at Update->getCmsInfoByUid('161249461') in Update.php line 40
  9. at Update->update() in Update.php line 39
  10. at Update->index()
  11. at ReflectionMethod->invokeArgs(object(Update), []) in App.php line 343
  12. at App::invokeMethod([object(Update), 'index'], []) in App.php line 606
  13. at App::module(['upgrade', 'update', null], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...], true) in App.php line 456
  14. at App::exec(['type' => 'module', 'module' => ['upgrade', 'update', null]], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...]) in App.php line 139
  15. at App::run() in start.php line 19
  16. at require('/www/wwwroot/zuanqun...') in index.php line 26

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 1
Driver Error Message Can't create/write to file '/tmp/#sql_a5d_0.MYI' (Errcode: 28)
Database Status
Error Code 10501
Error Message SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_a5d_0.MYI' (Errcode: 28)
Error SQL SHOW COLUMNS FROM `zq_web_key`
Database Config
type mysql
hostname 127.0.0.1
database zuanqun
hostport
dsn
params []
charset utf8
prefix zq_
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 false
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data

view
lists
query
女鞋
platform
pc?platform=pc
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
PHP_APP_DEBUG
1
PHP_APP_TRACE
PHP_ZUANQUN_STATIC_DOMAIN
http://static.zuanqun.cn
PHP_ZUANQUN_SESSION_DOMAIN
.zuanqun.cn
HTTP_IS_HTML
1
HTTP_REQUEST_URL
/index.php?view=lists&query=%E5%A5%B3%E9%9E%8B&platform=pc?platform=pc
HTTP_DOCUMENT_URL
/index.php
HTTP_CMS_HOST
demo.zuanqun.cn
HTTP_PROXY_VERSION
zq_cms_1
HTTP_APP_KEY
66b283d5c2b3a3221221542db1295bd48b4ca727
HTTP_APP_ID
161249461
HTTP_REFERER
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_HOST
upgrade.zuanqun.cn
PATH_INFO
/update.html
REDIRECT_STATUS
200
SERVER_NAME
www.zuanqun.cn
SERVER_PORT
80
SERVER_ADDR
148.163.169.76
REMOTE_PORT
45238
REMOTE_ADDR
148.163.169.76
SERVER_SOFTWARE
nginx/1.14.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/zuanqun/public
DOCUMENT_URI
/index.php
REQUEST_URI
/update.html?view=lists&query=%E5%A5%B3%E9%9E%8B&platform=pc%3Fplatform%3Dpc
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/update.html&view=lists&query=%E5%A5%B3%E9%9E%8B&platform=pc%3Fplatform%3Dpc
SCRIPT_FILENAME
/www/wwwroot/zuanqun/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1561590970.2638
REQUEST_TIME
1561590970
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/zuanqun/public/../application/
EXTEND_PATH
/www/wwwroot/zuanqun/public/../library/
THINK_VERSION
5.0.20
THINK_START_TIME
1561590970.265
THINK_START_MEM
367256
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/zuanqun/thinkphp/
LIB_PATH
/www/wwwroot/zuanqun/thinkphp/library/
CORE_PATH
/www/wwwroot/zuanqun/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/zuanqun/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/zuanqun/
VENDOR_PATH
/www/wwwroot/zuanqun/vendor/
RUNTIME_PATH
/www/wwwroot/zuanqun/runtime/
LOG_PATH
/www/wwwroot/zuanqun/runtime/log/
CACHE_PATH
/www/wwwroot/zuanqun/runtime/cache/
TEMP_PATH
/www/wwwroot/zuanqun/runtime/temp/
CONF_PATH
/www/wwwroot/zuanqun/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/zuanqun/addons/

test