System Error

[10501] PDOException in Connection.php line 386

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dbtest.user_token' doesn't exist

  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 386
  2. at Connection->query('SHOW COLUMNS FROM `u...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('`user_token`') in Query.php line 1921
  4. at Query->getTableInfo('user_token', 'pk') in Query.php line 1955
  5. at Query->getPk(['multi' => ['AND' => ['expiretime' => [['<', 1719271731], ['>', 0]]]], 'where' => ['AND' => ['expiretime' => [['<', 1719271731], ['>', 0]]]], 'table' => 'user_token', ...]) in Query.php line 2872
  6. at Query->delete() in Mysql.php line 43
  7. at Mysql->__construct(['type' => 'Mysql', 'key' => 'a5Xq82Vn6LCubhBjfmdG...', 'hashalgo' => 'ripemd160', ...]) in Token.php line 52
  8. at Token::connect(['type' => 'Mysql', 'key' => 'a5Xq82Vn6LCubhBjfmdG...', 'hashalgo' => 'ripemd160', ...]) in Token.php line 75
  9. at Token::init() in Token.php line 113
  10. at Token::get(null) in Auth.php line 95
  11. at Auth->init(null) in Frontend.php line 69
  12. at Frontend->_initialize() in User.php line 27
  13. at User->_initialize() in Controller.php line 59
  14. at Controller->__construct(object(Request))
  15. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  16. at App::invokeClass('app\index\controller...') in Loader.php line 479
  17. at Loader::controller('user', 'controller', false, 'Error') in App.php line 580
  18. at App::module(['index', 'user', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  19. at App::exec(['type' => 'module', 'module' => ['index', 'user', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  20. at App::run() in start.php line 19
  21. at require('/www/wwwroot/bjdbtes...') in index.php line 23

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'dbtest.user_token' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dbtest.user_token' doesn't exist
Error SQL SHOW COLUMNS FROM `user_token`
Database Config
type mysql
hostname 127.0.0.1
database dbtest
hostport 48036
dsn
params []
charset utf8mb4
prefix
debug false
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
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
bjdbtest.16go.com.cn
HTTP_ACCEPT_ENCODING
br,gzip
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
PATH_INFO
/index/user/index
REDIRECT_STATUS
200
SERVER_NAME
bjdbtest.16go.com.cn
SERVER_PORT
443
SERVER_ADDR
172.21.0.11
REMOTE_PORT
54358
REMOTE_ADDR
100.28.2.72
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/bjdbtest.16go.com.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/user/index
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/user/index
SCRIPT_FILENAME
/www/wwwroot/bjdbtest.16go.com.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1719271729.9044
REQUEST_TIME
1719271729
Environment Variables
empty

ThinkPHP Constants

url
/index/user/index
ref
Resource
ent
CCBot/2.0 (https://commoncrawl.org/faq/)
site
https://web.configs.im
road
/?road=bjdbtest.16go.com.cn/index/user/index&der=CCBot/2.0 (https://commoncrawl.org/faq/)
regs
@Baidu|Sogou|Yisou|Haosou|Spider|bot|Sm.cn@i
area
false
APP_PATH
/www/wwwroot/bjdbtest.16go.com.cn/public/../application/
THINK_VERSION
5.0.25
THINK_START_TIME
1719271731.5978
THINK_START_MEM
432792
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/bjdbtest.16go.com.cn/thinkphp/
LIB_PATH
/www/wwwroot/bjdbtest.16go.com.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/bjdbtest.16go.com.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/bjdbtest.16go.com.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/bjdbtest.16go.com.cn/
EXTEND_PATH
/www/wwwroot/bjdbtest.16go.com.cn/extend/
VENDOR_PATH
/www/wwwroot/bjdbtest.16go.com.cn/vendor/
RUNTIME_PATH
/www/wwwroot/bjdbtest.16go.com.cn/runtime/
LOG_PATH
/www/wwwroot/bjdbtest.16go.com.cn/runtime/log/
CACHE_PATH
/www/wwwroot/bjdbtest.16go.com.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/bjdbtest.16go.com.cn/runtime/temp/
CONF_PATH
/www/wwwroot/bjdbtest.16go.com.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
HTMLPURIFIER_PREFIX
/www/wwwroot/bjdbtest.16go.com.cn/vendor/ezyang/htmlpurifier/library
ADDON_PATH
/www/wwwroot/bjdbtest.16go.com.cn/addons/