[10501] PDOException in Connection.php line 385

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'fbsouhf.lf_zixun' 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 `l...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('lf_zixun') in Query.php line 1921
  4. at Query->getTableInfo('lf_zixun', 'type') in Query.php line 1969
  5. at Query->getFieldsType('lf_zixun') in Query.php line 1975
  6. at Query->getFieldsBind('lf_zixun') in Builder.php line 270
  7. at Builder->buildWhere([], ['field' => [object(Expression)], 'limit' => '1', 'table' => 'lf_zixun', ...]) in Builder.php line 240
  8. at Builder->parseWhere([], ['field' => [object(Expression)], 'limit' => '1', 'table' => 'lf_zixun', ...]) in Builder.php line 719
  9. at Builder->select(['field' => [object(Expression)], 'limit' => '1', 'table' => 'lf_zixun', ...]) in Query.php line 2462
  10. at Query->getPdo() in Query.php line 441
  11. at Query->value('COUNT(*) AS tp_count', 0, true) in Query.php line 576
  12. at Query->aggregate('COUNT', '*', true) in Query.php line 551
  13. at Query->count() in Query.php line 1484
  14. at Query->paginate(100) in Zixun.php line 57
  15. at Zixun->lists()
  16. at ReflectionMethod->invokeArgs(object(Zixun), []) in App.php line 343
  17. at App::invokeMethod([object(Zixun), 'lists'], []) in App.php line 611
  18. at App::module([null, 'zixun', 'lists'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  19. at App::exec(['type' => 'module', 'module' => [null, 'zixun', 'lists'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  20. at App::run() in start.php line 19
  21. at require('/www/wwwroot/fb.souh...') in index.php line 17

Exception Datas

PDO Error Info
SQLSTATE
42S02
Driver Error Code
1146
Driver Error Message
Table 'fbsouhf.lf_zixun' doesn't exist
Database Status
Error Code
10501
Error Message
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'fbsouhf.lf_zixun' doesn't exist
Error SQL
SHOW COLUMNS FROM `lf_zixun`
Database Config
type
mysql
hostname
localhost
database
fbsouhf
hostport
3306
dsn
params
[]
charset
utf8
prefix
lf_
debug
true
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
Y-m-d H:i:s
sql_explain
false
builder
query
\think\db\Query
break_reconnect
false

Environment Variables

GET Data

page
4
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/fb.souhf.com/index.php
QUERY_STRING
s=/list.html&page=4
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/list.html?page=4
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/fb.souhf.com
SERVER_PROTOCOL
HTTP/1.0
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.15.10
REMOTE_ADDR
47.92.234.30
REMOTE_PORT
47378
SERVER_ADDR
172.26.134.148
SERVER_PORT
80
SERVER_NAME
fb.souhf.com
REDIRECT_STATUS
200
PATH_INFO
/list.html
HTTP_HOST
fb.souhf.com
HTTP_X_REAL_IP
154.86.232.164
HTTP_X_FORWARDED_FOR
154.86.232.164
HTTP_X_FORWARDED_HOST
www.32032.net
HTTP_REMOTE_HOST
154.86.232.164
HTTP_CONNECTION
close
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1580130207.2964
REQUEST_TIME
1580130207
Environment Variables
empty

ThinkPHP Constants

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