[10501] PDOException in Connection.php line 385

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'rmfz.fa_cms_video' 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 `f...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('`fa_cms_video`') in Query.php line 1921
  4. at Query->getTableInfo('fa_cms_video', 'fields') in Query.php line 848
  5. at Query->field(['id', 'content'], true, 'fa_cms_video', 'n') in Channel.php line 98
  6. at Channel->index()
  7. at call_user_func_array([object(Channel), 'index'], []) in Route.php line 76
  8. at Route->execute('cms', 'channel', 'index')
  9. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'channel', 'index']) in App.php line 343
  10. at App::invokeMethod(['\think\addons\Route', 'execute'], ['id' => '885', 'addon' => 'cms', 'controller' => 'channel', ...]) in App.php line 470
  11. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'channel', 'action' => 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  12. at App::run() in start.php line 19
  13. at require('/www/wwwroot/rmfz.or...') in index.php line 23

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'rmfz.fa_cms_video' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'rmfz.fa_cms_video' doesn't exist
Error SQL SHOW COLUMNS FROM `fa_cms_video`
Database Config
type mysql
hostname 127.0.0.1
database rmfz
hostport
dsn
params []
charset utf8mb4
prefix fa_
debug false
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
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.rmfz.org.cn
PATH_INFO
//channels/885.html
REDIRECT_STATUS
200
SERVER_NAME
rmfz.org.cn
SERVER_PORT
443
SERVER_ADDR
172.23.68.32
REMOTE_PORT
35730
REMOTE_ADDR
54.163.14.144
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/rmfz.org.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
/channels/885.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//channels/885.html
SCRIPT_FILENAME
/www/wwwroot/rmfz.org.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711632046.7886
REQUEST_TIME
1711632046
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/rmfz.org.cn/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711632046.7888
THINK_START_MEM
404536
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/rmfz.org.cn/thinkphp/
LIB_PATH
/www/wwwroot/rmfz.org.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/rmfz.org.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/rmfz.org.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/rmfz.org.cn/
EXTEND_PATH
/www/wwwroot/rmfz.org.cn/extend/
VENDOR_PATH
/www/wwwroot/rmfz.org.cn/vendor/
RUNTIME_PATH
/www/wwwroot/rmfz.org.cn/runtime/
LOG_PATH
/www/wwwroot/rmfz.org.cn/runtime/log/
CACHE_PATH
/www/wwwroot/rmfz.org.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/rmfz.org.cn/runtime/temp/
CONF_PATH
/www/wwwroot/rmfz.org.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/rmfz.org.cn/addons/
QINIU_FUNCTIONS_VERSION
7.2.10