[10501] PDOException in Connection.php line 390

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mcbsendb.cmf_nav_menu' 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('`cmf_nav_menu`') in Query.php line 1883
  4. at Query->getTableInfo('cmf_nav_menu', 'type') in Query.php line 1931
  5. at Query->getFieldsType('cmf_nav_menu') in Query.php line 1937
  6. at Query->getFieldsBind('cmf_nav_menu') in Builder.php line 266
  7. at Builder->buildWhere(['AND' => ['nav_id' => ['eq', '1'], 'status' => ['eq', 1]]], ['multi' => ['AND' => ['nav_id' => [['eq', '1']], 'status' => [['eq', 1]]]], 'where' => ['AND' => ['nav_id' => ['eq', '1'], 'status' => ['eq', 1]]], 'order' => ['list_order ASC'], ...]) in Builder.php line 236
  8. at Builder->parseWhere(['AND' => ['nav_id' => ['eq', '1'], 'status' => ['eq', 1]]], ['multi' => ['AND' => ['nav_id' => [['eq', '1']], 'status' => [['eq', 1]]]], 'where' => ['AND' => ['nav_id' => ['eq', '1'], 'status' => ['eq', 1]]], 'order' => ['list_order ASC'], ...]) in Builder.php line 715
  9. at Builder->select(['multi' => ['AND' => ['nav_id' => [['eq', '1']], 'status' => [['eq', 1]]]], 'where' => ['AND' => ['nav_id' => ['eq', '1'], 'status' => ['eq', 1]]], 'order' => ['list_order ASC'], ...]) in Query.php line 2464
  10. at Query->select() in NavMenuModel.php line 32
  11. at NavMenuModel->navMenusTreeArray('1', 0) in IndexController.php line 25
  12. at IndexController->index()
  13. at ReflectionMethod->invokeArgs(object(IndexController), []) in App.php line 343
  14. at App::invokeMethod([object(IndexController), 'index'], []) in App.php line 606
  15. at App::module(['', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...], true) in App.php line 456
  16. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...]) in App.php line 139
  17. at App::run() in index.php line 44

Exception Datas

PDO Error Info
SQLSTATE
42S02
Driver Error Code
1146
Driver Error Message
Table 'mcbsendb.cmf_nav_menu' doesn't exist
Database Status
Error Code
10501
Error Message
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mcbsendb.cmf_nav_menu' doesn't exist
Error SQL
SHOW COLUMNS FROM `cmf_nav_menu`
Database Config
type
mysql
hostname
localhost
database
mcbsendb
hostport
3306
dsn
params
[]
charset
utf8mb4
prefix
cmf_
debug
true
deploy
0
rw_separate
false
master_num
1
slave_no
read_master
false
fields_strict
true
result_type
2
resultset_type
collection
auto_timestamp
false
datetime_format
false
sql_explain
false
builder
query
\think\db\Query
break_reconnect
false
authcode
J51x51k56vahTyNOD5

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

TEMP
/tmp
TMPDIR
/tmp
TMP
/tmp
PATH
/usr/local/bin:/usr/bin:/bin
USER
www
HOME
/home/www
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
en.mcbschina.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
SCRIPT_FILENAME
/data/wwwroot/mcbsen/public/index.php
REDIRECT_STATUS
200
SERVER_NAME
en.mcbschina.com
SERVER_PORT
80
SERVER_ADDR
172.20.183.176
REMOTE_PORT
20001
REMOTE_ADDR
154.208.245.87
SERVER_SOFTWARE
nginx/1.14.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/data/wwwroot/mcbsen/public
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1582827590.6489
REQUEST_TIME
1582827590
Environment Variables
empty

ThinkPHP Constants

IP
154.208.245.87
APP_DEBUG
true
CMF_ROOT
/data/wwwroot/mcbsen/public/../
APP_PATH
/data/wwwroot/mcbsen/public/../app/
CMF_PATH
/data/wwwroot/mcbsen/public/../simplewind/cmf/
PLUGINS_PATH
/data/wwwroot/mcbsen/public/plugins/
EXTEND_PATH
/data/wwwroot/mcbsen/public/../simplewind/extend/
VENDOR_PATH
/data/wwwroot/mcbsen/public/../simplewind/vendor/
RUNTIME_PATH
/data/wwwroot/mcbsen/public/../data/runtime/
THINKCMF_VERSION
5.0.180626
THINK_VERSION
5.0.20
THINK_START_TIME
1582827590.6491
THINK_START_MEM
357576
EXT
.php
DS
/
THINK_PATH
/data/wwwroot/mcbsen/simplewind/thinkphp/
LIB_PATH
/data/wwwroot/mcbsen/simplewind/thinkphp/library/
CORE_PATH
/data/wwwroot/mcbsen/simplewind/thinkphp/library/think/
TRAIT_PATH
/data/wwwroot/mcbsen/simplewind/thinkphp/library/traits/
ROOT_PATH
/data/wwwroot/mcbsen/
LOG_PATH
/data/wwwroot/mcbsen/public/../data/runtime/log/
CACHE_PATH
/data/wwwroot/mcbsen/public/../data/runtime/cache/
TEMP_PATH
/data/wwwroot/mcbsen/public/../data/runtime/temp/
CONF_PATH
/data/wwwroot/mcbsen/public/../app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/data/wwwroot/mcbsen/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.5
0.004180s