[10501] PDOException in Connection.php line 391

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'yyssj_co.fa_' 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 391
  2. at Connection->query('SHOW COLUMNS FROM `f...', [], false, true) in Mysql.php line 62
  3. at Mysql->getFields('fa_') in Query.php line 1741
  4. at Query->getTableInfo('fa_', 'type') in Query.php line 1789
  5. at Query->getFieldsType('fa_') in Query.php line 1795
  6. at Query->getFieldsBind('fa_') in Builder.php line 256
  7. at Builder->buildWhere(['AND' => [['exp', 'category_ids like '%...']]], ['field' => ['*', 'concat('') as type'], 'where' => ['AND' => [['exp', 'category_ids like '%...']]], 'order' => ['createtime desc'], ...]) in Builder.php line 226
  8. at Builder->parseWhere(['AND' => [['exp', 'category_ids like '%...']]], ['field' => ['*', 'concat('') as type'], 'where' => ['AND' => [['exp', 'category_ids like '%...']]], 'order' => ['createtime desc'], ...]) in Builder.php line 690
  9. at Builder->select(['field' => ['*', 'concat('') as type'], 'where' => ['AND' => [['exp', 'category_ids like '%...']]], 'order' => ['createtime desc'], ...]) in Query.php line 2308
  10. at Query->select() in Lists.php line 30
  11. at Lists->index() in Category.php line 106
  12. at Category->index()
  13. at ReflectionMethod->invokeArgs(object(Category), []) in App.php line 197
  14. at App::invokeMethod([object(Category), 'index'], []) in App.php line 411
  15. at App::module(['index', 'category', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 296
  16. at App::exec(['type' => 'module', 'module' => ['index', 'category', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
  17. at App::run() in start.php line 19
  18. at require('/www/wwwobject/test/...') in index.php line 29

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'yyssj_co.fa_' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'yyssj_co.fa_' doesn't exist
Error SQL SHOW COLUMNS FROM `fa_`
Database Config
type mysql
hostname 192.168.0.252,192.168.0.251
database yyssj_co,yyssj_co
hostport 3306,3306
dsn
params { "12": false }
charset utf8
prefix fa_
debug false
deploy 1
rw_separate true
master_num 1
slave_no
fields_strict false
result_type 2
resultset_type collection
auto_timestamp false
datetime_format false
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "session_url": "\/category-95.html" }

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwobject/test/cfyys.com.cn/public/index.php
QUERY_STRING
s=/category-95.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/category-95.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwobject/test/cfyys.com.cn/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.22.0
REMOTE_ADDR
44.200.23.133
REMOTE_PORT
43152
SERVER_ADDR
192.168.0.2
SERVER_PORT
80
SERVER_NAME
www.cfyys.com.cn
REDIRECT_STATUS
200
PATH_INFO
/category-95.html
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
cfyys.com.cn
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711635189.8469
REQUEST_TIME
1711635189
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwobject/test/cfyys.com.cn/public/../application/
THINK_VERSION
5.0.11
THINK_START_TIME
1711635189.8477
THINK_START_MEM
261440
EXT
.php
DS
/
THINK_PATH
/www/wwwobject/test/cfyys.com.cn/thinkphp/
LIB_PATH
/www/wwwobject/test/cfyys.com.cn/thinkphp/library/
CORE_PATH
/www/wwwobject/test/cfyys.com.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwobject/test/cfyys.com.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwobject/test/cfyys.com.cn/
EXTEND_PATH
/www/wwwobject/test/cfyys.com.cn/extend/
VENDOR_PATH
/www/wwwobject/test/cfyys.com.cn/vendor/
RUNTIME_PATH
/www/wwwobject/test/cfyys.com.cn/runtime/
LOG_PATH
/www/wwwobject/test/cfyys.com.cn/runtime/log/
CACHE_PATH
/www/wwwobject/test/cfyys.com.cn/runtime/cache/
TEMP_PATH
/www/wwwobject/test/cfyys.com.cn/runtime/temp/
CONF_PATH
/www/wwwobject/test/cfyys.com.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwobject/test/cfyys.com.cn/addons/