[10501] PDOException in Connection.php line 390

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'www_hlj315_org.cool_' 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 390
  2. at Connection->query('SHOW COLUMNS FROM `c...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('`cool_`') in Query.php line 1883
  4. at Query->getTableInfo('cool_', 'type') in Query.php line 1931
  5. at Query->getFieldsType('cool_') in Query.php line 1937
  6. at Query->getFieldsBind('cool_') in Builder.php line 266
  7. at Builder->buildWhere(['AND' => ['catid' => '313', 'status' => 3]], ['alias' => ['cool_' => 'a'], 'join' => [[['cool_category' => 'c'], 'LEFT', 'a.catid = c.id']], 'multi' => ['AND' => ['catid' => ['313'], 'status' => [3]]], ...]) in Builder.php line 236
  8. at Builder->parseWhere(['AND' => ['catid' => '313', 'status' => 3]], ['alias' => ['cool_' => 'a'], 'join' => [[['cool_category' => 'c'], 'LEFT', 'a.catid = c.id']], 'multi' => ['AND' => ['catid' => ['313'], 'status' => [3]]], ...]) in Builder.php line 715
  9. at Builder->select(['alias' => ['cool_' => 'a'], 'join' => [[['cool_category' => 'c'], 'LEFT', 'a.catid = c.id']], 'multi' => ['AND' => ['catid' => ['313'], 'status' => [3]]], ...]) in Query.php line 2415
  10. at Query->getPdo() in Query.php line 434
  11. at Query->value('COUNT(*) AS tp_count', 0, true) in Query.php line 540
  12. at Query->count() in Query.php line 1446
  13. at Query->paginate(15) in EmptyController.php line 65
  14. at EmptyController->index()
  15. at ReflectionMethod->invokeArgs(object(EmptyController), []) in App.php line 349
  16. at App::invokeMethod([object(EmptyController), 'index'], []) in App.php line 612
  17. at App::module(['home', 'news', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 462
  18. at App::exec(['type' => 'module', 'module' => ['home', 'news', '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('/guazai/wwwroot/www....') in index.php line 38

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'www_hlj315_org.cool_' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'www_hlj315_org.cool_' doesn't exist
Error SQL SHOW COLUMNS FROM `cool_`
Database Config
type mysql
hostname localhost
database www_hlj315_org
hostport 3306
dsn
params []
charset utf8
prefix cool_
debug true
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_HOST
www.315hlj.net
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/news_313_150
REDIRECT_STATUS
200
SERVER_NAME
315hlj.net
SERVER_PORT
80
SERVER_ADDR
172.26.201.143
REMOTE_PORT
45972
REMOTE_ADDR
174.129.59.198
SERVER_SOFTWARE
nginx/1.15.10
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/guazai/wwwroot/www.hlj315.org
DOCUMENT_URI
/index.php
REQUEST_URI
/news_313_150
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/news_313_150
SCRIPT_FILENAME
/guazai/wwwroot/www.hlj315.org/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711661373.0902
REQUEST_TIME
1711661373
Environment Variables
empty

ThinkPHP Constants

__PUBLIC__
/public
__ADMIN__
/public/static/admin
APP_PATH
/guazai/wwwroot/www.hlj315.org/app/
RUNTIME_PATH
/guazai/wwwroot/www.hlj315.org/public/runtime/
LOG_PATH
/guazai/wwwroot/www.hlj315.org/public/runtime/log/
DATA_PATH
/guazai/wwwroot/www.hlj315.org/public/runtime/Data/
PLUGIN_PATH
/guazai/wwwroot/www.hlj315.org/core/plugins/
EXTEND_PATH
/guazai/wwwroot/www.hlj315.org/core/extend/
ADDONS_PATH
/guazai/wwwroot/www.hlj315.org/addons/
CONF_PATH
/guazai/wwwroot/www.hlj315.org/config/
THINK_VERSION
5.0.20
THINK_START_TIME
1711661373.0906
THINK_START_MEM
377856
EXT
.php
DS
/
THINK_PATH
/guazai/wwwroot/www.hlj315.org/core/think/
LIB_PATH
/guazai/wwwroot/www.hlj315.org/core/think/library/
CORE_PATH
/guazai/wwwroot/www.hlj315.org/core/think/library/think/
TRAIT_PATH
/guazai/wwwroot/www.hlj315.org/core/think/library/traits/
ROOT_PATH
/guazai/wwwroot/www.hlj315.org/
VENDOR_PATH
/guazai/wwwroot/www.hlj315.org/vendor/
CACHE_PATH
/guazai/wwwroot/www.hlj315.org/public/runtime/cache/
TEMP_PATH
/guazai/wwwroot/www.hlj315.org/public/runtime/temp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/guazai/wwwroot/www.hlj315.org/addons/
UPLOAD_PATH
./Uploads/
MODULE_NAME
news
ACTION_NAME
index
DBNAME