[10501] PDOException in Connection.php line 385

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'youuptech.com.y_news' 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 `y...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('y_news') in Query.php line 1921
  4. at Query->getTableInfo('y_news', 'type') in Query.php line 1969
  5. at Query->getFieldsType('y_news') in Query.php line 1975
  6. at Query->getFieldsBind('y_news') in Builder.php line 270
  7. at Builder->buildWhere([], ['order' => ['id' => 'desc'], 'limit' => '0,11', 'table' => 'y_news', ...]) in Builder.php line 240
  8. at Builder->parseWhere([], ['order' => ['id' => 'desc'], 'limit' => '0,11', 'table' => 'y_news', ...]) in Builder.php line 719
  9. at Builder->select(['order' => ['id' => 'desc'], 'limit' => '0,11', 'table' => 'y_news', ...]) in Query.php line 2511
  10. at Query->select() in Query.php line 1487
  11. at Query->paginate(10, true) in News.php line 13
  12. at News->index()
  13. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 343
  14. at App::invokeMethod([object(News), 'index'], []) in App.php line 611
  15. at App::module(['index', 'news', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  16. at App::exec(['type' => 'module', 'module' => ['index', 'news', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  17. at App::run() in start.php line 19
  18. at require('/data/www/youuptech....') in index.php line 17

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'youuptech.com.y_news' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'youuptech.com.y_news' doesn't exist
Error SQL SHOW COLUMNS FROM `y_news`
Database Config
type mysql
hostname 127.0.0.1
database youuptech.com
hostport
dsn
params []
charset utf8
prefix y_
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 true
datetime_format Y-m-d H:i:s
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

REDIRECT_UNIQUE_ID
ZgWDQIZ5HzXbk6l99pBfNQAADBI
REDIRECT_HTTPS
on
REDIRECT_SSL_TLS_SNI
youuptech.com
REDIRECT_HTTP2
on
REDIRECT_H2PUSH
off
REDIRECT_H2_PUSH
off
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_STREAM_ID
REDIRECT_H2_STREAM_TAG
000
REDIRECT_STATUS
200
UNIQUE_ID
ZgWDQIZ5HzXbk6l99pBfNQAADBI
HTTPS
on
SSL_TLS_SNI
youuptech.com
HTTP2
on
H2PUSH
off
H2_PUSH
off
H2_PUSHED
H2_PUSHED_ON
H2_STREAM_ID
H2_STREAM_TAG
000
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
youuptech.com
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH
/usr/local/apache/lib:/usr/local/openssl/lib
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
youuptech.com
SERVER_ADDR
172.31.108.21
SERVER_PORT
443
REMOTE_ADDR
44.222.104.49
DOCUMENT_ROOT
/data/www/youuptech.com
REQUEST_SCHEME
https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/data/www/youuptech.com
SERVER_ADMIN
2355492508@qq.com
SCRIPT_FILENAME
/data/www/youuptech.com/index.php
REMOTE_PORT
56012
REDIRECT_URL
/news/index.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/2.0
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/news/index.html
SCRIPT_NAME
/index.php
PATH_INFO
/index/news/index.html
PATH_TRANSLATED
redirect:/index.php/index/index/news/index.html/news/index.html
PHP_SELF
/index.php/index/news/index.html
REQUEST_TIME_FLOAT
1711637312.5
REQUEST_TIME
1711637312
Environment Variables
empty

ThinkPHP Constants

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