[10501] PDOException in Connection.php line 388

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

  1. $this->PDOStatement->execute();
  2. // 调试结束
  3. $this->debug(false);
  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 388
  2. at Connection->query('SHOW COLUMNS FROM `c...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('clt_') in Query.php line 1763
  4. at Query->getTableInfo('clt_', 'type') in Query.php line 1811
  5. at Query->getFieldsType('clt_') in Query.php line 1817
  6. at Query->getFieldsBind('clt_') in Builder.php line 263
  7. at Builder->buildWhere(['AND' => ['catid' => ['in', null]]], ['alias' => ['clt_' => 'a'], 'join' => [[['clt_category' => 'c'], 'LEFT', 'a.catid = c.id']], 'multi' => ['AND' => ['catid' => [['in', null]]]], ...]) in Builder.php line 233
  8. at Builder->parseWhere(['AND' => ['catid' => ['in', null]]], ['alias' => ['clt_' => 'a'], 'join' => [[['clt_category' => 'c'], 'LEFT', 'a.catid = c.id']], 'multi' => ['AND' => ['catid' => [['in', null]]]], ...]) in Builder.php line 697
  9. at Builder->select(['alias' => ['clt_' => 'a'], 'join' => [[['clt_category' => 'c'], 'LEFT', 'a.catid = c.id']], 'multi' => ['AND' => ['catid' => [['in', null]]]], ...]) in Query.php line 2295
  10. at Query->getPdo() in Query.php line 427
  11. at Query->value('COUNT(*) AS tp_count', 0, true) in Query.php line 533
  12. at Query->count() in Query.php line 1354
  13. at Query->paginate('') in EmptyController.php line 94
  14. at EmptyController->index()
  15. at ReflectionMethod->invokeArgs(object(EmptyController), []) in App.php line 343
  16. at App::invokeMethod([object(EmptyController), 'index'], []) in App.php line 595
  17. at App::module(['home', 'about', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  18. at App::exec(['type' => 'module', 'module' => ['home', 'about', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  19. at App::run() in start.php line 19
  20. at require('/www/wwwroot/www.tia...') in index.php line 22

Exception Datas

PDO Error Info
SQLSTATE
42S02
Driver Error Code
1146
Driver Error Message
Table 'www_tianyiantenn.clt_' doesn't exist
Database Status
Error Code
10501
Error Message
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'www_tianyiantenn.clt_' doesn't exist
Error SQL
SHOW COLUMNS FROM `clt_`
Database Config
type
mysql
hostname
127.0.0.1
database
www_tianyiantenn
hostport
3306
dsn
params
[]
charset
utf8
prefix
clt_
debug
true
deploy
0
rw_separate
false
master_num
1
slave_no
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
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/www.tianyiantenna.com/index.php
QUERY_STRING
s=/about-7.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/about-7.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/www.tianyiantenna.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.14.2
REMOTE_ADDR
154.209.146.174
REMOTE_PORT
20000
SERVER_ADDR
117.34.71.47
SERVER_PORT
80
SERVER_NAME
www.tianyiantenna.com
REDIRECT_STATUS
200
PATH_INFO
/about-7.html
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
tianyiantenna.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1606800284.7628
REQUEST_TIME
1606800284
Environment Variables
empty

ThinkPHP Constants

__PUBLIC__
/public
APP_PATH
/www/wwwroot/www.tianyiantenna.com/app/
DATA_PATH
/www/wwwroot/www.tianyiantenna.com/runtime/Data/
PLUGIN_PATH
/www/wwwroot/www.tianyiantenna.com/plugins/
THINK_VERSION
5.0.15
THINK_START_TIME
1606800284.7636
THINK_START_MEM
263384
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.tianyiantenna.com/think/
LIB_PATH
/www/wwwroot/www.tianyiantenna.com/think/library/
CORE_PATH
/www/wwwroot/www.tianyiantenna.com/think/library/think/
TRAIT_PATH
/www/wwwroot/www.tianyiantenna.com/think/library/traits/
ROOT_PATH
/www/wwwroot/www.tianyiantenna.com/
EXTEND_PATH
/www/wwwroot/www.tianyiantenna.com/extend/
VENDOR_PATH
/www/wwwroot/www.tianyiantenna.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.tianyiantenna.com/runtime/
LOG_PATH
/www/wwwroot/www.tianyiantenna.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.tianyiantenna.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.tianyiantenna.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.tianyiantenna.com/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
UPLOAD_PATH
./Uploads/
MAX_MENU_LENGTH
3
MAX_SUB_MENU_LENGTH
5
MODULE_NAME
about
ACTION_NAME
index
DBNAME