[10501] PDOException in Connection.php line 385

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sqlt6gj_com.mdzz' 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 `m...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('mdzz') in Query.php line 1921
  4. at Query->getTableInfo('mdzz', 'type') in Query.php line 1969
  5. at Query->getFieldsType('mdzz') in Query.php line 1975
  6. at Query->getFieldsBind('mdzz') in Builder.php line 270
  7. at Builder->buildWhere([], ['table' => 'mdzz', 'field' => ['mdname', 'mdtel', 'mddizi', ...], 'where' => [], ...]) in Builder.php line 240
  8. at Builder->parseWhere([], ['table' => 'mdzz', 'field' => ['mdname', 'mdtel', 'mddizi', ...], 'where' => [], ...]) in Builder.php line 719
  9. at Builder->select(['table' => 'mdzz', 'field' => ['mdname', 'mdtel', 'mddizi', ...], 'where' => [], ...]) in Query.php line 2511
  10. at Query->select() in Index.php line 738
  11. at Index->lxwm()
  12. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  13. at App::invokeMethod([object(Index), 'lxwm'], []) in App.php line 611
  14. at App::module(['index', 'index', 'lxwm'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  15. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'lxwm'], 'convert' => false], ['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('/www/wwwroot/t6gj.co...') in index.php line 17

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'sqlt6gj_com.mdzz' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sqlt6gj_com.mdzz' doesn't exist
Error SQL SHOW COLUMNS FROM `mdzz`
Database Config
type mysql
hostname 127.0.0.1
database sqlt6gj_com
hostport 1995
dsn
params []
charset utf8
prefix cms_
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 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
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/t6gj.com/public/index.php
QUERY_STRING
s=/lxwm.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/lxwm.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/t6gj.com/public
SERVER_PROTOCOL
HTTP/2.0
REQUEST_SCHEME
https
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.18.0
REMOTE_ADDR
34.229.223.223
REMOTE_PORT
45324
SERVER_ADDR
172.24.76.133
SERVER_PORT
443
SERVER_NAME
t6gj.com
REDIRECT_STATUS
200
PATH_INFO
/lxwm.html
HTTP_HOST
www.t6gj.com
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_REFERER
http://www.t6gj.com/lxwm.html
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710834009.8129
REQUEST_TIME
1710834009
Environment Variables
empty

ThinkPHP Constants

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