[2002] PDOException in Connection.php line 293

SQLSTATE[HY000] [2002] No such file or directory

  1. $this->fetchType = $config['result_type'];
  2. }
  3. try {
  4. if (empty($config['dsn'])) {
  5. $config['dsn'] = $this->parseDsn($config);
  6. }
  7. if ($config['debug']) {
  8. $startTime = microtime(true);
  9. }
  10. $this->links[$linkNum] = new PDO($config['dsn'], $config['username'], $config['password'], $params);
  11. if ($config['debug']) {
  12. // 记录数据库连接信息
  13. Log::record('[ DB ] CONNECT:[ UseTime:' . number_format(microtime(true) - $startTime, 6) . 's ] ' . $config['dsn'], 'sql');
  14. }
  15. } catch (\PDOException $e) {
  16. if ($autoConnection) {
  17. Log::record($e->getMessage(), 'error');
  18. return $this->connect($autoConnection, $linkNum);
  19. } else {

Call Stack

  1. in Connection.php line 293
  2. at PDO->__construct('mysql:dbname=tao_ylh...', 'tao_ylhx61_com', 'qjtpgjfkmu428!', [0, 2, 0, ...]) in Connection.php line 293
  3. at Connection->connect() in Connection.php line 968
  4. at Connection->initConnect(false) in Connection.php line 346
  5. at Connection->query('SHOW COLUMNS FROM `c...', [], false, true) in Mysql.php line 62
  6. at Mysql->getFields('cxxia_config') in Query.php line 1739
  7. at Query->getTableInfo('cxxia_config', 'type') in Query.php line 1787
  8. at Query->getFieldsType('cxxia_config') in Query.php line 1793
  9. at Query->getFieldsBind('cxxia_config') in Builder.php line 254
  10. at Builder->buildWhere(['AND' => ['type' => 1]], ['multi' => ['AND' => ['type' => [1]]], 'where' => ['AND' => ['type' => 1]], 'field' => ['name', 'value'], ...]) in Builder.php line 224
  11. at Builder->parseWhere(['AND' => ['type' => 1]], ['multi' => ['AND' => ['type' => [1]]], 'where' => ['AND' => ['type' => 1]], 'field' => ['name', 'value'], ...]) in Builder.php line 675
  12. at Builder->select(['multi' => ['AND' => ['type' => [1]]], 'where' => ['AND' => ['type' => 1]], 'field' => ['name', 'value'], ...]) in Query.php line 2306
  13. at Query->select() in Config.php line 4
  14. at Config->webConfig('site_config') in common.php line 4
  15. at get_config('WEB_AUTH_CODE') in Common.php line 4
  16. at Common->_license() in Base.php line 2
  17. at Base->_initialize() in Pcend.php line 3
  18. at Pcend->_initialize() in Controller.php line 56
  19. at Controller->__construct(object(Request))
  20. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 215
  21. at App::invokeClass('app\index\controller...') in Loader.php line 420
  22. at Loader::controller('goods', 'controller', false, 'Error') in App.php line 394
  23. at App::module(['index', 'goods', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 295
  24. at App::exec(['type' => 'module', 'module' => ['index', 'goods', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  25. at App::run() in start.php line 18
  26. at require('/data/wwwroot/tao.yl...') in index.php line 20

Environment Variables

GET Data

[ "get_config", "Config", "", "get_taobao_coupon", "format_number", "get_word", "\/", "(.*?)", "\/s", "object_to_array", "resource", "object", "array", "friend_date", "Y", "m", "d", "\u521a\u521a", "Y\u5e74m\u6708d\u65e5", "\u540e\u5929", "H:i", "\u660e\u5929", "\u79d2\u524d", "\u5206\u949f\u524d", "\u5c0f\u65f6\u524d", "\u6628\u5929", "\u524d\u5929", "m\u6708d\u65e5 H:i", "m\u6708d\u65e5", "z", "Y", "normal", "\u79d2\u524d", "\u5206\u949f\u524d", "\u4eca\u5929", "m\u6708d\u65e5 H:i", "Y-m-d H:i", "mohu", "\u5c0f\u65f6\u524d", "\u5929\u524d", "\u5468\u524d", "\u4e2a\u6708\u524d", "full", "Y-m-d , H:i:s", "ymd", "Y-m-d", "Y-m-d H:i:s", "create_invite_code", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "%02d", "0123456789ABCDEFGHIJKLMNOPQRSTUV", "get_keywords", "pscws4.pscws4", "pscws4\/etc\/dict.utf8.xdb", "pscws4\/etc\/rules.utf8.ini", "word", "get_keywords_str", "phpanalysis.phpanalysis", "utf-8", "str_length", "mb_strlen", "\/.\/u", "exec_curl", "file_get_contents", "http", "method", "POST", "header", "Content-type: application\/x-www-form-urlencoded", "content", "HTTP_USER_AGENT", "nav_url", "https:\/\/", "http:\/\/", "get_avatar", "data\/uploads\/avatar\/", "WEB_SITE_URL", "User", "id", "avatar", "attach", "get_thumb", "taobaocdn.com", "taobao.com", "alicdn.com", "tbcdn.cn", "_s", "_100x100.jpg", "_m", "_230x230.jpg", "_b", "_310x310.jpg", "get_url", "get_image_url", "show_type", "C", "\u6dd8\u5b9d", "B", "\u5929\u732b", "is_json", "query", "item_id", "default_item_id", "amp;id", "amp;item_id", "amp;default_item_id", "new_goods", "Y-m-d", "<span class=\"goods-new\">\u65b0\u54c1<\/span>", "get_adzone_ids", "Agent", "upid,wechat_pid,app_pid,pdd_pid,jd_pid", "uid", "_", "mm_", "J", "adzone_id", "is_today", "get_theme_model", "ThemeModel", "[]", "push_log", "register", "318", "\u53d1\u9001\u6210\u529f", "log_test", "data\/log_test.text", "put", "get" ]
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/data/wwwroot/tao.ylhx61.com/index.php
QUERY_STRING
s=/index/goods/index/id/622999326405.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index/goods/index/id/622999326405.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/data/wwwroot/tao.ylhx61.com
SERVER_PROTOCOL
HTTP/2.0
REQUEST_SCHEME
https
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.21.4
REMOTE_ADDR
44.192.247.185
REMOTE_PORT
52290
SERVER_ADDR
172.17.16.3
SERVER_PORT
443
SERVER_NAME
tao.ylhx61.com
REDIRECT_STATUS
200
PATH_INFO
/index/goods/index/id/622999326405.html
HTTP_HOST
tao.ylhx61.com
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711644424.3705
REQUEST_TIME
1711644424
[ "_initialize", "isMobile", "url", "domain", "rtrim", "\/", "m\/Index\/index", ".", "config", "default_return_type", "preg_replace", "\/\\\/index\\\/\/", "\/m\/", "redirect" ]
[ "site_config", "system_config", "seo_config", "api_config", "oauth_config", "score_config", "agent_config", "app_config", "theme_config", "wxtheme_config", "webtheme_config", "marketing_config", "website_config", "activ_config", "type", "name,value", "name", "value" ]
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/wwwroot/tao.ylhx61.com/application/
THINK_VERSION
5.0.10
THINK_START_TIME
1711644424.3712
THINK_START_MEM
264920
EXT
.php
DS
/
THINK_PATH
/data/wwwroot/tao.ylhx61.com/thinkphp/
LIB_PATH
/data/wwwroot/tao.ylhx61.com/thinkphp/library/
CORE_PATH
/data/wwwroot/tao.ylhx61.com/thinkphp/library/think/
TRAIT_PATH
/data/wwwroot/tao.ylhx61.com/thinkphp/library/traits/
ROOT_PATH
/data/wwwroot/tao.ylhx61.com/
EXTEND_PATH
/data/wwwroot/tao.ylhx61.com/extend/
VENDOR_PATH
/data/wwwroot/tao.ylhx61.com/vendor/
CXXIA_DATA_PATH
/data/wwwroot/tao.ylhx61.com/data/
CXXIA_UPGRADE_PATH
/data/wwwroot/tao.ylhx61.com/data/upgrade/
CXXIA_INSTALL_PATH
/data/wwwroot/tao.ylhx61.com/data/install/
CXXIA_PLUGIN_PATH
/data/wwwroot/tao.ylhx61.com/data/plugin/
RUNTIME_PATH
/data/wwwroot/tao.ylhx61.com/runtime/
LOG_PATH
/data/wwwroot/tao.ylhx61.com/runtime/log/
CACHE_PATH
/data/wwwroot/tao.ylhx61.com/runtime/cache/
TEMP_PATH
/data/wwwroot/tao.ylhx61.com/runtime/temp/
CONF_PATH
/data/wwwroot/tao.ylhx61.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false