[10501] PDOException in Connection.php line 388

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cxg_university.dsc_dealer' doesn't exist

  1. $this->PDOStatement->execute();
  2. // 调试结束
  3. $this->debug(false);
  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 (\Exception $e) {
  12. if ($this->isBreak($e)) {
  13. return $this->close()->query($sql, $bind, $master, $pdo);
  14. }
  15. throw $e;
  16. }
  17. }
  18. /**

Call Stack

  1. in Connection.php line 388
  2. at Connection->query('SHOW COLUMNS FROM `d...', [], false, true) in Mysql.php line 62
  3. at Mysql->getFields('`dsc_dealer`') in Query.php line 1846
  4. at Query->getTableInfo('dsc_dealer', 'type') in Query.php line 1894
  5. at Query->getFieldsType('dsc_dealer') in Query.php line 1900
  6. at Query->getFieldsBind('dsc_dealer') in Builder.php line 256
  7. at Builder->buildWhere(['AND' => ['status' => 1]], ['field' => ['id', 'dealer_name'], 'multi' => ['AND' => ['status' => [1]]], 'where' => ['AND' => ['status' => 1]], ...]) in Builder.php line 226
  8. at Builder->parseWhere(['AND' => ['status' => 1]], ['field' => ['id', 'dealer_name'], 'multi' => ['AND' => ['status' => [1]]], 'where' => ['AND' => ['status' => 1]], ...]) in Builder.php line 690
  9. at Builder->select(['field' => ['id', 'dealer_name'], 'multi' => ['AND' => ['status' => [1]]], 'where' => ['AND' => ['status' => 1]], ...]) in Query.php line 2417
  10. at Query->select() in Login.php line 77
  11. at Login->userLogin(object(Request))
  12. at ReflectionMethod->invokeArgs(object(Login), [object(Request)]) in App.php line 197
  13. at App::invokeMethod([object(Login), 'userlogin'], []) in App.php line 417
  14. at App::module(['dealer', 'login', 'userlogin'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 296
  15. at App::exec(['type' => 'module', 'module' => ['dealer', 'login', 'userlogin']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
  16. at App::run() in start.php line 18
  17. at require('/www/wwwroot/changxi...') in index.php line 34

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'cxg_university.dsc_dealer' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cxg_university.dsc_dealer' doesn't exist
Error SQL SHOW COLUMNS FROM `dsc_dealer`
Database Config
type mysql
hostname cxg-polardb-public-access.rwlb.rds.aliyuncs.com
database cxg_university
hostport 3306
dsn
params []
charset utf8
prefix dsc_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
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

/dealer/login/userlogin_html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/dealer/login/userlogin.html
QUERY_STRING
/dealer/login/userlogin.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.0
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
/dealer/login/userlogin.html
REDIRECT_URL
/dealer/login/userlogin.html
REMOTE_PORT
32934
SCRIPT_FILENAME
/www/wwwroot/changxianggu/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/changxianggu
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/changxianggu
REMOTE_ADDR
172.17.72.49
SERVER_PORT
80
SERVER_ADDR
172.17.72.48
SERVER_NAME
www.changxianggu.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.changxianggu.com Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/www/server/panel/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_REFERER
http://www.changxianggu.com/dealer/
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_CONNECTION
close
HTTP_X_REAL_IP
18.209.69.180
HTTP_X_FORWARDED_FOR
18.209.69.180
HTTP_HOST
www.changxianggu.com
proxy-nokeepalive
1
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711702515.1323
REQUEST_TIME
1711702515
PATH_INFO
/dealer/login/userlogin.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/changxianggu/application/
APP_DEBUG
false
APP_TRACE
false
THINK_VERSION
5.0.11
THINK_START_TIME
1711702515.1326
THINK_START_MEM
405048
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/changxianggu/thinkphp/
LIB_PATH
/www/wwwroot/changxianggu/thinkphp/library/
CORE_PATH
/www/wwwroot/changxianggu/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/changxianggu/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/changxianggu/
EXTEND_PATH
/www/wwwroot/changxianggu/extend/
VENDOR_PATH
/www/wwwroot/changxianggu/vendor/
RUNTIME_PATH
/www/wwwroot/changxianggu/runtime/
LOG_PATH
/www/wwwroot/changxianggu/runtime/log/
CACHE_PATH
/www/wwwroot/changxianggu/runtime/cache/
TEMP_PATH
/www/wwwroot/changxianggu/runtime/temp/
CONF_PATH
/www/wwwroot/changxianggu/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false