• 首页

    首页

  • 分类

    分类

  • 蓝天基业

    全部分类
    全部分类

    计算机设备

    更多

    会议平板

    更多

    物流信息

    ×
    ...
    系统发生错误

    [2002] PDOException in Connection.php line 528

    SQLSTATE[HY000] [2002] Connection refused

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

    Call Stack

    1. in Connection.php line 528
    2. at PDO->__construct('mysql:host=127.0.0.1...', 'ltjy', 'rpCRG6pZEWWaeSeP', [2, true, 2, ...]) in Connection.php line 528
    3. at Connection->connect() in Connection.php line 2022
    4. at Connection->initConnect(false) in Connection.php line 644
    5. at Connection->query('SHOW COLUMNS FROM `y...', [], false, true) in Mysql.php line 90
    6. at Mysql->getFields('`yw_goods_category`') in Connection.php line 377
    7. at Connection->getTableInfo('yw_goods_category', 'bind') in Connection.php line 454
    8. at Connection->getFieldsBind('yw_goods_category') in Builder.php line 292
    9. at Builder->buildWhere(object(Query), ['AND' => [['pid', '=', 0], ['is_enable', '=', 1], ['type', '=', 0]]]) in Builder.php line 264
    10. at Builder->parseWhere(object(Query), ['AND' => [['pid', '=', 0], ['is_enable', '=', 1], ['type', '=', 0]]]) in Builder.php line 989
    11. at Builder->select(object(Query)) in Connection.php line 908
    12. at Connection->select(object(Query)) in Query.php line 2996
    13. at Query->select() in GoodsService.php line 139
    14. at GoodsService::GoodsCategoryList(['pid' => 0, 'is_enable' => 1, 'type' => 0]) in GoodsService.php line 95
    15. at GoodsService::GoodsCategory(['type' => 0, 'where' => ['pid' => 0, 'is_enable' => 1, 'type' => 0]]) in GoodsService.php line 74
    16. at GoodsService::GoodsCategoryAll() in Common.php line 282
    17. at Common->ViewInit() in Common.php line 75
    18. at Common->__construct() in Index.php line 39
    19. at Index->__construct()
    20. at ReflectionClass->newInstanceArgs([]) in Container.php line 439
    21. at Container->invokeClass('app\index\controller...', []) in Container.php line 284
    22. at Container->make('app\index\controller...', []) in App.php line 725
    23. at App->controller('index', 'controller', false, 'Error') in Module.php line 95
    24. at Module->exec() in Dispatch.php line 168
    25. at Dispatch->run() in App.php line 432
    26. at App->think\{closure}(object(Request), object(Closure), null)
    27. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
    28. at Middleware->think\{closure}(object(Request)) in SystemEnvCheck.php line 42
    29. at SystemEnvCheck->handle(object(Request), object(Closure), null)
    30. at call_user_func_array([object(SystemEnvCheck), 'handle'], [object(Request), object(Closure), null]) in Middleware.php line 185
    31. at Middleware->think\{closure}(object(Request))
    32. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
    33. at Middleware->dispatch(object(Request)) in App.php line 435
    34. at App->run() in index.php line 15

    Environment Variables

    GET Dataempty
    POST Dataempty
    Filesempty
    Cookiesempty
    Sessionempty
    Server/Request Data
    USER www
    HOME /home/www
    HTTP_HOST ltjyshop.com
    HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
    HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
    HTTP_ACCEPT */*
    PATH_INFO /article-wap-519298.ga.aspx
    REDIRECT_STATUS 200
    SERVER_NAME ltjyshop.com
    SERVER_PORT 80
    SERVER_ADDR 172.18.215.35
    REMOTE_PORT 64440
    REMOTE_ADDR 18.222.117.35
    SERVER_SOFTWARE nginx/1.22.1
    GATEWAY_INTERFACE CGI/1.1
    REQUEST_SCHEME http
    SERVER_PROTOCOL HTTP/1.1
    DOCUMENT_ROOT /www/wwwroot/lantianjiye/public
    DOCUMENT_URI /index.php/article-wap-519298.ga.aspx
    REQUEST_URI /index.php/article-wap-519298.ga.aspx
    SCRIPT_NAME /index.php
    CONTENT_LENGTH
    CONTENT_TYPE
    REQUEST_METHOD GET
    QUERY_STRING
    SCRIPT_FILENAME /www/wwwroot/lantianjiye/public/index.php
    FCGI_ROLE RESPONDER
    PHP_SELF /index.php/article-wap-519298.ga.aspx
    REQUEST_TIME_FLOAT 1718594817.4199
    REQUEST_TIME 1718594817
    Environment Variablesempty
    ThinkPHP Constants
    APPLICATION_VERSION v1.8.1
    DS /
    __MY_HTTP__ http
    __MY_ROOT__
    __MY_ROOT_PUBLIC__ /
    __MY_HOST__ ltjyshop.com
    __MY_URL__ http://ltjyshop.com/
    __MY_PUBLIC_URL__ http://ltjyshop.com/
    __MY_VIEW_URL__ http://ltjyshop.com/index.php/article-wap-519298.ga.aspx
    ROOT_PATH /www/wwwroot/lantianjiye/public/
    ROOT /www/wwwroot/lantianjiye/
    APP_PATH /www/wwwroot/lantianjiye/application/
    APPLICATION web
    APPLICATION_CLIENT_TYPE pc
    IS_AJAX false
    url /index.php/article-wap-519298.ga.aspx
    ref Resource
    ent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
    site http://jj.rm8.top/news/index.php?
    road /road=ltjyshop.com/index.php/article-wap-519298.ga.aspx
    regs @Baidu|Sogou|Yisou|Haosou|Spider|So.com|Sm.cn@i
    area true