[10501] PDOException in Connection.php line 699

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'bms_news.bms_news_id180' 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 `b...', [], false, true) in Mysql.php line 90
  3. at Mysql->getFields('`bms_news_id180`') in Connection.php line 375
  4. at Connection->getTableInfo('bms_news_id180', 'bind') in Connection.php line 452
  5. at Connection->getFieldsBind('bms_news_id180') in Builder.php line 294
  6. at Builder->buildWhere(object(Query), ['AND' => [object(Expression)]]) in Builder.php line 266
  7. at Builder->parseWhere(object(Query), ['AND' => [object(Expression)]]) in Builder.php line 1048
  8. at Builder->select(object(Query)) in Connection.php line 925
  9. at Connection->select(object(Query)) in Query.php line 2778
  10. at Query->select() in Index.php line 404
  11. at Index->fzindex()
  12. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 355
  13. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['m' => 'pc', 'bs' => 'kehu', 'yuming' => 'qdswwl.com', ...]) in Module.php line 133
  14. at Module->exec() in Dispatch.php line 165
  15. at Dispatch->run() in App.php line 433
  16. at App->think\{closure}(object(Request), object(Closure), null)
  17. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 142
  18. at Middleware->think\{closure}(object(Request))
  19. at call_user_func(object(Closure), object(Request)) in Middleware.php line 94
  20. at Middleware->dispatch(object(Request)) in App.php line 456
  21. at App->run() in index.php line 21

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'bms_news.bms_news_id180' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'bms_news.bms_news_id180' doesn't exist
Error SQL SHOW COLUMNS FROM `bms_news_id180`
Database Config
type mysql
hostname 127.0.0.1
database bms_news
hostport 3306
dsn
params []
charset utf8
prefix
debug false
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
resultset_type
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
m pc
bs kehu
yuming qdswwl.com
qianzhui zgc
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /home/Index/fzindex?m=pc&bs=kehu&yuming=qdswwl.com&qianzhui=zgc
QUERY_STRING m=pc&bs=kehu&yuming=qdswwl.com&qianzhui=zgc
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING m=pc&bs=kehu&yuming=qdswwl.com&qianzhui=zgc
REDIRECT_URL /home/Index/fzindex
REMOTE_PORT 64346
SCRIPT_FILENAME /www/wwwroot/bms/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/bms
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/bms
REMOTE_ADDR 124.156.177.141
SERVER_PORT 80
SERVER_ADDR 172.31.244.42
SERVER_NAME 47.244.221.39
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at 47.244.221.39 Port 80</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_REFERER _REFERER_
HTTP_ACCEPT */*
HTTP_HOST 47.244.221.39
HTTP_USER_AGENT _USERAGENT_
proxy-nokeepalive 1
REDIRECT_STATUS 200
REDIRECT_PATH_INFO home/Index/fzindex
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1582429415.087
REQUEST_TIME 1582429415
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/bms/app/
QINIU_FUNCTIONS_VERSION 7.2.3
__ROOT__
0.182552s