[10501] PDOException in Connection.php line 699

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

  1. $this->debug(false, '', $master);
  2. // 返回结果集
  3. return $this->getResult($pdo, $procedure);
  4. } catch (\PDOException $e) {
  5. if ($this->isBreak($e)) {
  6. return $this->close()->query($sql, $bind, $master, $pdo);
  7. }
  8. throw new PDOException($e, $this->config, $this->getLastsql());
  9. } catch (\Throwable $e) {
  10. if ($this->isBreak($e)) {
  11. return $this->close()->query($sql, $bind, $master, $pdo);
  12. }
  13. throw $e;
  14. } catch (\Exception $e) {
  15. if ($this->isBreak($e)) {
  16. return $this->close()->query($sql, $bind, $master, $pdo);

Call Stack

  1. in Connection.php line 699
  2. at Connection->query('SHOW COLUMNS FROM `p...', [], false, true) in Mysql.php line 90
  3. at Mysql->getFields('px_school') in Connection.php line 375
  4. at Connection->getTableInfo('px_school', 'bind') in Connection.php line 452
  5. at Connection->getFieldsBind('px_school') in Builder.php line 294
  6. at Builder->buildWhere(object(Query), ['AND' => [['id', '=', 1, ...]]]) in Builder.php line 266
  7. at Builder->parseWhere(object(Query), ['AND' => [['id', '=', 1, ...]]]) in Builder.php line 1048
  8. at Builder->select(object(Query)) in Connection.php line 847
  9. at Connection->find(object(Query)) in Query.php line 2842
  10. at Query->find() in School.php line 16
  11. at School::get_data(1) in About.php line 29
  12. at About->school()
  13. at ReflectionMethod->invokeArgs(object(About), []) in Container.php line 325
  14. at Container->invokeReflectMethod(object(About), object(ReflectionMethod), ['/index/about/school_html' => '']) in Module.php line 122
  15. at Module->exec() in Url.php line 31
  16. at Url->exec() in Dispatch.php line 163
  17. at Dispatch->run() in App.php line 455
  18. at App->think\{closure}(object(Request), object(Closure), null)
  19. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 142
  20. at Middleware->think\{closure}(object(Request))
  21. at call_user_func(object(Closure), object(Request)) in Middleware.php line 94
  22. at Middleware->dispatch(object(Request)) in App.php line 476
  23. at App->run() in index.php line 21

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'px.px_school' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'px.px_school' doesn't exist
Error SQL SHOW COLUMNS FROM `px_school`
Database Config
type mysql
hostname 127.0.0.1
database px
hostport
dsn
params []
charset utf8
prefix px_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
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
break_match_str []

Environment Variables

GET Data
/index/about/school_html
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
PATH C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\VisualSVN Server\bin;C:\Program Files\TortoiseSVN\bin
SYSTEMROOT C:\Windows
COMSPEC C:\Windows\system32\cmd.exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR C:\Windows
PHP_FCGI_MAX_REQUESTS 1000
PHPRC C:/phpStudy/PHPTutorial/php/php-5.6.27-nts/
_FCGI_SHUTDOWN_EVENT_ 1916
HTTP_CONNECTION close
SCRIPT_NAME /index.php
REQUEST_URI /index/about/school.html
QUERY_STRING /index/about/school.html
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING /index/about/school.html
REDIRECT_URL /index/about/school.html
REMOTE_PORT 51954
SCRIPT_FILENAME C:/phpStudy/PHPTutorial/WWW/px06/public/index.php
SERVER_ADMIN admin@php.cn
CONTEXT_DOCUMENT_ROOT C:/phpStudy/PHPTutorial/WWW/px06/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT C:/phpStudy/PHPTutorial/WWW/px06/public
REMOTE_ADDR 54.158.248.39
SERVER_PORT 80
SERVER_ADDR 172.18.103.154
SERVER_NAME www.eduforth.com.cn
SERVER_SOFTWARE Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9
SERVER_SIGNATURE
SystemRoot C:\Windows
HTTP_HOST www.eduforth.com.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711621762.9409
REQUEST_TIME 1711621762
PATH_INFO /index/about/school.html
Environment Variablesempty
ThinkPHP Constantsempty