[10501] PDOException in Connection.php line 385

SQLSTATE[HY000]: General error: 29 File './gw_51qby_com/config.MYD' not found (Errcode: 2 - No such file or directory)

  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 `c...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('`config`') in Query.php line 1921
  4. at Query->getTableInfo('config', 'pk') in Query.php line 1955
  5. at Query->getPk(['table' => 'config', 'where' => [], 'field' => '*', ...]) in Query.php line 2639
  6. at Query->find(1) in Base.php line 33
  7. at Base->_initialize() in Controller.php line 59
  8. at Controller->__construct(object(Request))
  9. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  10. at App::invokeClass('app\index\controller...') in Loader.php line 479
  11. at Loader::controller('news', 'controller', false, 'Error') in App.php line 580
  12. at App::module(['Index', 'news', 'pinfo'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  13. at App::exec(['type' => 'module', 'module' => ['Index', 'news', 'pinfo']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  14. at App::run() in start.php line 19
  15. at require('/www/wwwroot/www.51q...') in index.php line 35

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 29
Driver Error Message File './gw_51qby_com/config.MYD' not found (Errcode: 2 - No such file or directory)
Database Status
Error Code 10501
Error Message SQLSTATE[HY000]: General error: 29 File './gw_51qby_com/config.MYD' not found (Errcode: 2 - No such file or directory)
Error SQL SHOW COLUMNS FROM `config`
Database Config
type mysql
hostname 127.0.0.1
database gw_51qby_com
hostport
dsn
params []
charset utf8
prefix
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict false
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
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
PATH_TRANSLATED
/www/wwwroot/www.51qby.com/Index/news/pinfo/id/177.html
PATH_INFO
/Index/news/pinfo/id/177.html
SCRIPT_NAME
/index.php
REQUEST_URI
/index.php/Index/news/pinfo/id/177.html
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REMOTE_PORT
43544
SCRIPT_FILENAME
/www/wwwroot/www.51qby.com/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/www.51qby.com/
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/www.51qby.com/
REMOTE_ADDR
47.111.155.91
SERVER_PORT
443
SERVER_ADDR
172.23.186.231
SERVER_NAME
gw.51qby.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at gw.51qby.com Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
HTTP_ACCEPT_CHARSET
utf-8
HTTP_REFERER
http://gw.51qby.com/index.php/Index/news/pinfo/id/177.html
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 (compatible;MSIE5.01;Windows NT 5.0)
HTTP_HOST
gw.51qby.com
proxy-nokeepalive
1
SSL_TLS_SNI
gw.51qby.com
HTTPS
on
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/Index/news/pinfo/id/177.html
REQUEST_TIME_FLOAT
1790875269.8422
REQUEST_TIME
1790875269
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.51qby.com/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1790875269.8426
THINK_START_MEM
407328
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.51qby.com/thinkphp/
LIB_PATH
/www/wwwroot/www.51qby.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.51qby.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.51qby.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.51qby.com/
EXTEND_PATH
/www/wwwroot/www.51qby.com/extend/
VENDOR_PATH
/www/wwwroot/www.51qby.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.51qby.com/runtime/
LOG_PATH
/www/wwwroot/www.51qby.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.51qby.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.51qby.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.51qby.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
Swagger\UNDEFINED
{SWAGGER-PHP-UNDEFINED-46EC-07AB32D2-D50C}
Swagger\Annotations\UNDEFINED
{SWAGGER-PHP-UNDEFINED-46EC-07AB32D2-D50C}
Swagger\Processors\UNDEFINED
{SWAGGER-PHP-UNDEFINED-46EC-07AB32D2-D50C}