[10501] PDOException in Connection.php line 385

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'jq199.mac_group' 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 385
  2. at Connection->query('SHOW COLUMNS FROM `m...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('`mac_group`') in Query.php line 1921
  4. at Query->getTableInfo('mac_group', 'type') in Query.php line 1969
  5. at Query->getFieldsType('mac_group') in Query.php line 1975
  6. at Query->getFieldsBind('mac_group') in Builder.php line 270
  7. at Builder->buildWhere([], ['field' => [object(Expression)], 'limit' => '1', 'table' => 'mac_group', ...]) in Builder.php line 240
  8. at Builder->parseWhere([], ['field' => [object(Expression)], 'limit' => '1', 'table' => 'mac_group', ...]) in Builder.php line 720
  9. at Builder->select(['field' => [object(Expression)], 'limit' => '1', 'table' => 'mac_group', ...]) in Query.php line 2462
  10. at Query->getPdo() in Query.php line 441
  11. at Query->value('COUNT(*) AS tp_count', 0, true) in Query.php line 576
  12. at Query->aggregate('COUNT', '*', true) in Query.php line 551
  13. at Query->count() in Group.php line 27
  14. at Group->listData([], 'group_id asc') in Group.php line 120
  15. at Group->setCache() in Group.php line 132
  16. at Group->getCache() in All.php line 132
  17. at All->label_user() in Base.php line 17
  18. at Base->__construct() in Index.php line 8
  19. at Index->__construct()
  20. at ReflectionClass->newInstanceArgs([]) in App.php line 359
  21. at App::invokeClass('app\index\controller...') in Loader.php line 479
  22. at Loader::controller('index', 'controller', false, 'MyError') in App.php line 580
  23. at App::module(['index', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  24. at App::exec(['type' => 'module', 'module' => ['index', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  25. at App::run() in start.php line 19
  26. at require('/www/wwwroot/jq199.c...') in index.php line 39

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'jq199.mac_group' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'jq199.mac_group' doesn't exist
Error SQL SHOW COLUMNS FROM `mac_group`
Database Config
type mysql
hostname 127.0.0.1
database jq199
hostport 3306
dsn
params []
charset utf8
prefix mac_
debug false
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict false
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

USER
www
HOME
/home/www
HTTP_REFERER
http://www.jq199.cn/contact/
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.jq199.cn
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
jq199.cn
SERVER_PORT
443
SERVER_ADDR
38.177.134.211
REMOTE_PORT
51272
REMOTE_ADDR
54.160.244.62
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/jq199.cn
DOCUMENT_URI
/index.php
REQUEST_URI
/contact/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/jq199.cn/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710843306.673
REQUEST_TIME
1710843306
Environment Variables
empty

ThinkPHP Constants

ROOT_PATH
/www/wwwroot/jq199.cn/
APP_PATH
/www/wwwroot/jq199.cn/application/
MAC_COMM
/www/wwwroot/jq199.cn/application/common/common/
MAC_HOME_COMM
/www/wwwroot/jq199.cn/application/index/common/
MAC_ADMIN_COMM
/www/wwwroot/jq199.cn/application/admin/common/
MAC_START_TIME
1710843306.6732
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1710843306.6734
THINK_START_MEM
416592
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/jq199.cn/thinkphp/
LIB_PATH
/www/wwwroot/jq199.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/jq199.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/jq199.cn/thinkphp/library/traits/
EXTEND_PATH
/www/wwwroot/jq199.cn/extend/
VENDOR_PATH
/www/wwwroot/jq199.cn/vendor/
RUNTIME_PATH
/www/wwwroot/jq199.cn/runtime/
LOG_PATH
/www/wwwroot/jq199.cn/runtime/log/
CACHE_PATH
/www/wwwroot/jq199.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/jq199.cn/runtime/temp/
CONF_PATH
/www/wwwroot/jq199.cn/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/jq199.cn/addons/
MAC_URL
http://www.maccms.la/
MAC_NAME
苹果CMS
MAC_PATH
/
MAC_MOB
0
MAC_ROOT_TEMPLATE
/www/wwwroot/jq199.cn/template/stui_tpl/html/
MAC_PATH_TEMPLATE
/template/stui_tpl/
MAC_PATH_TPL
/template/stui_tpl/html/
MAC_PATH_ADS
/template/stui_tpl/ads/
MAC_PAGE_SP
_
MAC_PLAYER_SORT
1
MAC_ADDON_PATH
/www/wwwroot/jq199.cn/addons/
MAC_ADDON_PATH_STATIC
/www/wwwroot/jq199.cn/static/addons/