[10501] PDOException in Connection.php line 385

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xiangchenjitu.banenr' 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 `b...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('banenr') in Query.php line 1921
  4. at Query->getTableInfo('banenr', 'type') in Query.php line 1969
  5. at Query->getFieldsType('banenr') in Query.php line 1975
  6. at Query->getFieldsBind('banenr') in Builder.php line 270
  7. at Builder->buildWhere(['AND' => ['id' => ['eq', '123']]], ['multi' => ['AND' => ['id' => [['eq', '123']]]], 'where' => ['AND' => ['id' => ['eq', '123']]], 'order' => ['sort'], ...]) in Builder.php line 240
  8. at Builder->parseWhere(['AND' => ['id' => ['eq', '123']]], ['multi' => ['AND' => ['id' => [['eq', '123']]]], 'where' => ['AND' => ['id' => ['eq', '123']]], 'order' => ['sort'], ...]) in Builder.php line 719
  9. at Builder->select(['multi' => ['AND' => ['id' => [['eq', '123']]]], 'where' => ['AND' => ['id' => ['eq', '123']]], 'order' => ['sort'], ...]) in Query.php line 2511
  10. at Query->select() in Index.php line 226
  11. at Index->qywhxq('123')
  12. at ReflectionMethod->invokeArgs(object(Index), ['123']) in App.php line 343
  13. at App::invokeMethod([object(Index), 'qywhxq'], []) in App.php line 611
  14. at App::module(['index', 'index', 'qywhxq'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  15. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'qywhxq']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  16. at App::run() in start.php line 19
  17. at require('/home/wwwroot/xiangc...') in index.php line 17

Exception Datas

PDO Error Info
SQLSTATE
42S02
Driver Error Code
1146
Driver Error Message
Table 'xiangchenjitu.banenr' doesn't exist
Database Status
Error Code
10501
Error Message
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xiangchenjitu.banenr' doesn't exist
Error SQL
SHOW COLUMNS FROM `banenr`
Database Config
type
mysql
hostname
localhost
database
xiangchenjitu
hostport
dsn
params
[]
charset
utf8
prefix
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
Y-m-d H:i:s
sql_explain
false
builder
query
\think\db\Query
break_reconnect
false

Environment Variables

GET Data

/index/index/qywhxq/id/123_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.xiangchenjt.com
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.xiangchenjt.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.xiangchenjt.com
SERVER_ADDR
211.149.212.192
SERVER_PORT
80
REMOTE_ADDR
156.238.53.187
DOCUMENT_ROOT
/www/wwwroot/xiangchenjituan
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/xiangchenjituan
SERVER_ADMIN
webmaster@example.com
SCRIPT_FILENAME
/www/wwwroot/xiangchenjituan/index.php
REMOTE_PORT
20000
REDIRECT_URL
/index/index/qywhxq/id/123.html
REDIRECT_QUERY_STRING
/index/index/qywhxq/id/123.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
/index/index/qywhxq/id/123.html
REQUEST_URI
/index/index/qywhxq/id/123.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1603908057.393
REQUEST_TIME
1603908057
PATH_INFO
/index/index/qywhxq/id/123.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/xiangchenjituan/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1603908057.3942
THINK_START_MEM
263568
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/xiangchenjituan/thinkphp/
LIB_PATH
/home/wwwroot/xiangchenjituan/thinkphp/library/
CORE_PATH
/home/wwwroot/xiangchenjituan/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/xiangchenjituan/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/xiangchenjituan/
EXTEND_PATH
/home/wwwroot/xiangchenjituan/extend/
VENDOR_PATH
/home/wwwroot/xiangchenjituan/vendor/
RUNTIME_PATH
/home/wwwroot/xiangchenjituan/runtime/
LOG_PATH
/home/wwwroot/xiangchenjituan/runtime/log/
CACHE_PATH
/home/wwwroot/xiangchenjituan/runtime/cache/
TEMP_PATH
/home/wwwroot/xiangchenjituan/runtime/temp/
CONF_PATH
/home/wwwroot/xiangchenjituan/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false