[10501] PDOException in Connection.php line 385

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'gongyong.xh' 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 `x...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('xh') in Query.php line 1921
  4. at Query->getTableInfo('xh', 'type') in Query.php line 1969
  5. at Query->getFieldsType('xh') in Query.php line 1975
  6. at Query->getFieldsBind('xh') in Builder.php line 270
  7. at Builder->buildWhere(['AND' => [['exp', object(Expression)]]], ['field' => ['ID as id', 'pp', 'can_x', ...], 'where' => ['AND' => [['exp', object(Expression)]]], 'order' => ['NEWID()'], ...]) in Builder.php line 240
  8. at Builder->parseWhere(['AND' => [['exp', object(Expression)]]], ['field' => ['ID as id', 'pp', 'can_x', ...], 'where' => ['AND' => [['exp', object(Expression)]]], 'order' => ['NEWID()'], ...]) in Builder.php line 719
  9. at Builder->select(['field' => ['ID as id', 'pp', 'can_x', ...], 'where' => ['AND' => [['exp', object(Expression)]]], 'order' => ['NEWID()'], ...]) in Query.php line 2511
  10. at Query->select() in Query.php line 1490
  11. at Query->paginate(9, 1000) in Zcxhcx.php line 67
  12. at Zcxhcx->selectQuery('1=1', 9) in Index.php line 122
  13. at Index->productlist()
  14. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  15. at App::invokeMethod([object(Index), 'productlist'], []) in App.php line 611
  16. at App::module(['index', 'Index', 'productlist'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  17. at App::exec(['type' => 'module', 'module' => ['index', 'Index', 'productlist']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  18. at App::run() in start.php line 19
  19. at require('E:\virtualhost\02qiu...') in index.php line 19

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'gongyong.xh' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'gongyong.xh' doesn't exist
Error SQL SHOW COLUMNS FROM `xh`
Database Config
type mysql
hostname chuangdian.mysql.rds.aliyuncs.com
database gongyong
hostport 1818
dsn
params []
charset utf8
prefix
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
5
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
IZC71WUT7VMWXLZ
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
1
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft\Web Platform Installer\;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 79 Stepping 1, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
4f01
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files (x86)
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
IZC71WUT7VMWXLZ$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
HTTP_CONTENT_LENGTH
0
HTTP_ACCEPT
*/*
HTTP_HOST
www.qiuxingbearing.com
HTTP_USER_AGENT
claudebot
HTTP_X_ORIGINAL_URL
/xhlb.asp?page=5
APP_POOL_ID
02qiuxingbearingcom
AUTH_TYPE
AUTH_PASSWORD
AUTH_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_SERIALNUMBER
CERT_SUBJECT
CONTENT_LENGTH
0
CONTENT_TYPE
GATEWAY_INTERFACE
CGI/1.1
HTTPS
off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID
2
LOCAL_ADDR
118.190.116.41
LOGON_USER
PATH_INFO
/index/Index/productlist
PATH_TRANSLATED
E:/virtualhost/02qiuxingbearingcom/public/index/Index/productlist
QUERY_STRING
page=5
REMOTE_ADDR
3.87.133.69
REMOTE_HOST
3.87.133.69
REMOTE_USER
REQUEST_METHOD
GET
SCRIPT_NAME
/index.php
SERVER_NAME
www.qiuxingbearing.com
SERVER_PORT
80
SERVER_PORT_SECURE
0
SERVER_PROTOCOL
HTTP/1.1
SERVER_SOFTWARE
Microsoft-IIS/8.5
UNMAPPED_REMOTE_USER
ORIG_PATH_INFO
/index.php/index/Index/productlist
SCRIPT_FILENAME
E:\virtualhost\02qiuxingbearingcom\public\index.php
ORIG_PATH_TRANSLATED
E:\virtualhost\02qiuxingbearingcom\public\index.php\index\Index\productlist
PHP_SELF
/index.php/index/Index/productlist
REQUEST_TIME_FLOAT
1711644629.3183
REQUEST_TIME
1711644629
Environment Variables
empty

ThinkPHP Constants

SITE_URL
http://www.qiuxingbearing.com
APP_PATH
E:\virtualhost\02qiuxingbearingcom\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711644629.3192
THINK_START_MEM
144376
EXT
.php
DS
\
THINK_PATH
E:\virtualhost\02qiuxingbearingcom\thinkphp\
LIB_PATH
E:\virtualhost\02qiuxingbearingcom\thinkphp\library\
CORE_PATH
E:\virtualhost\02qiuxingbearingcom\thinkphp\library\think\
TRAIT_PATH
E:\virtualhost\02qiuxingbearingcom\thinkphp\library\traits\
ROOT_PATH
E:\virtualhost\02qiuxingbearingcom\
EXTEND_PATH
E:\virtualhost\02qiuxingbearingcom\extend\
VENDOR_PATH
E:\virtualhost\02qiuxingbearingcom\vendor\
RUNTIME_PATH
E:\virtualhost\02qiuxingbearingcom\runtime\
LOG_PATH
E:\virtualhost\02qiuxingbearingcom\runtime\log\
CACHE_PATH
E:\virtualhost\02qiuxingbearingcom\runtime\cache\
TEMP_PATH
E:\virtualhost\02qiuxingbearingcom\runtime\temp\
CONF_PATH
E:\virtualhost\02qiuxingbearingcom\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true