[10501] PDOException in Connection.php line 385

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xhkj_cn.hsz_' 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 `h...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('hsz_') in Query.php line 1921
  4. at Query->getTableInfo('hsz_', 'pk') in Query.php line 1955
  5. at Query->getPk(['multi' => ['AND' => ['id' => [['null', '']]]], 'where' => ['AND' => ['id' => ['null', '']]], 'table' => 'hsz_', ...]) in Query.php line 2639
  6. at Query->find() in Base.php line 73
  7. at Base->_initialize() in Controller.php line 59
  8. at Controller->__construct(object(Request))
  9. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  10. at App::invokeClass('app\home\controller\...') in Loader.php line 479
  11. at Loader::controller('Info', 'controller', false, 'Error') in App.php line 581
  12. at App::module([null, 'Info', 'action'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  13. at App::exec(['type' => 'module', 'module' => [null, 'Info', 'action'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  14. at App::run() in start.php line 19
  15. at require('/www/wwwroot/xhkj.cn...') in index.php line 34

Exception Datas

PDO Error Info
SQLSTATE
42S02
Driver Error Code
1146
Driver Error Message
Table 'xhkj_cn.hsz_' doesn't exist
Database Status
Error Code
10501
Error Message
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xhkj_cn.hsz_' doesn't exist
Error SQL
SHOW COLUMNS FROM `hsz_`
Database Config
type
mysql
hostname
127.0.0.1
database
xhkj_cn
hostport
3306
dsn
params
[]
charset
utf8
prefix
hsz_
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

/picture/369_html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_STATUS
200
proxy-nokeepalive
1
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.xhkj.cn
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH
/www/server/apache/lib
SERVER_SIGNATURE
<address>Apache Server at www.xhkj.cn Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.xhkj.cn
SERVER_ADDR
122.114.65.110
SERVER_PORT
80
REMOTE_ADDR
175.29.8.240
DOCUMENT_ROOT
/www/wwwroot/xhkj.cn/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/xhkj.cn/public
SERVER_ADMIN
webmaster@example.com
SCRIPT_FILENAME
/www/wwwroot/xhkj.cn/public/index.php
REMOTE_PORT
20000
REDIRECT_URL
/picture/369.html
REDIRECT_QUERY_STRING
/picture/369.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
/picture/369.html
REQUEST_URI
/picture/369.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1594510480.4113
REQUEST_TIME
1594510480
PATH_INFO
/picture/369.html
Environment Variables
empty

ThinkPHP Constants

__PUBLIC__
/public
APP_PATH
/www/wwwroot/xhkj.cn/public/../application/
UPLOAD_PATH
/www/wwwroot/xhkj.cn/public/../public
RUNTIME_PATH
/www/wwwroot/xhkj.cn/public/../runtime/
DATA
/www/wwwroot/xhkj.cn/public/../data/
APP_DEBUG
true
DB_DEBUG
true
THINK_VERSION
5.0.24
THINK_START_TIME
1594510480.4123
THINK_START_MEM
269768
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/xhkj.cn/thinkphp/
LIB_PATH
/www/wwwroot/xhkj.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/xhkj.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/xhkj.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/xhkj.cn/
PUBLIC_PATH
/www/wwwroot/xhkj.cn/public/
EXTEND_PATH
/www/wwwroot/xhkj.cn/extend/
VENDOR_PATH
/www/wwwroot/xhkj.cn/vendor/
LOG_PATH
/www/wwwroot/xhkj.cn/public/../runtime/log/
CACHE_PATH
/www/wwwroot/xhkj.cn/public/../runtime/cache/
TEMP_PATH
/www/wwwroot/xhkj.cn/public/../runtime/temp/
CONF_PATH
/www/wwwroot/xhkj.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
QINIU_FUNCTIONS_VERSION
7.1.3
DATA_PATH
../runtime/cache/module/
MAX_MENU_LENGTH
3
MAX_SUB_MENU_LENGTH
5