2025-12-01 05:22:12 — PHP8.1.32 —

CodeIgniter\Database\Exceptions\DatabaseException

Unable to connect to the database.
Main connection [MySQLi]: Connection refused

/www/wwwroot/www.uaa5.com/dayrui/System/Database/BaseConnection.php at line 465

458                         break;
459                     }
460                 }
461             }
462 
463             // We still don't have a connection?
464             if (! $this->connID) {
465                 throw new DatabaseException(sprintf(
466                     'Unable to connect to the database.%s%s',
467                     PHP_EOL,
468                     implode(PHP_EOL$connectionErrors),
469                 ));
470             }
471         }
472 
  1. /www/wwwroot/www.uaa5.com/dayrui/System/Database/BaseConnection.php : 614   —  CodeIgniter\Database\BaseConnection->initialize ()

    607      * @todo BC set $queryClass default as null in 4.1
    608      */
    609     public function query(string $sql$binds nullbool $setEscapeFlags truestring $queryClass '')
    610     {
    611         $queryClass $queryClass !== '' && $queryClass !== '0' $queryClass $this->queryClass;
    612 
    613         if (empty($this->connID)) {
    614             $this->initialize();
    615         }
    616 
    617         /**
    618          * @var Query $query
    619          */
    620         $query = new $queryClass($this);
    621 
    
  2. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Core/View.php : 1349   —  CodeIgniter\Database\BaseConnection->query ()

    1342                     $sql str_replace($this->_select_rt_name'sum('.$system['sum'].') as ct'$sql);
    1343                     break;
    1344             }
    1345         }
    1346 
    1347         // 执行SQL
    1348         $t microtime(TRUE);
    1349         $query = $mysql->query($sql);
    1350         $time microtime(TRUE) - $t;
    1351 
    1352         // 记录慢日志
    1353         if ($time && is_file(WRITEPATH.'database/sql.lock')) {
    1354             $file WRITEPATH.'database/Sql/sql.txt';
    1355             $path dirname($file);
    1356             if (!is_dir($path)) {
    
  3. /www/wwwroot/www.uaa5.com/dayrui/App/Module/Action/Module.php : 290   —  Phpcmf\View->_query ()

    283         $sql_limit "LIMIT {$system['num']}";
    284     }
    285 
    286     $system['order'] = $this->_set_orders_field_prefix($system['order'], $_order); // 给排序字段加上表前缀
    287     $sql "SELECT " .$this->_get_select_field($system['field'] ? $system['field'] : '*') . " FROM $sql_from " . ($sql_where "WHERE $sql_where"") . ($system['order'] == "null" || !$system['order'] ? "" " ORDER BY {$system['order']}") . $sql_limit";
    288 }
    289 
    290 $data = $this->_query($sql, $system);
    291 
    292 // 缓存查询结果
    293 if (is_array($data) && $data) {
    294     // 模块表的系统字段
    295     $fields['inputtime'] = ['fieldtype' => 'Date'];
    296     $fields['updatetime'] = ['fieldtype' => 'Date'];
    297     // 格式化显示自定义字段内容
    
  4. require /www/wwwroot/www.uaa5.com/dayrui/Fcms/Core/View.php   —   require()

  5. /www/wwwroot/www.uaa5.com/cache/template/_DS_www_DS_wwwroot_DS_www.uaa5.com_DS_template_DS_pc_DS_default_DS_home_DS_index.html.cache.php : 55   —  Phpcmf\View->list_tag ()

    48     </div>
    49     <div class="col-xl-4">
    50         <!--begin::Chart Widget 35-->
    51         <div class="card card-flush h-md-100">
    52             <!--begin::Body-->
    53             <div data-action="index_zuixin" class="tpl-edit-show card-body pt-6">
    54                 <!--最新文章-->
    55                 <?php $list_return = $this->list_tag("action=module module=news num=6"); if ($list_return && is_array($list_return)) extract($list_return, EXTR_OVERWRITE); $count=dr_count($return); if (is_array($return) && $return) { $key=-1; foreach ($return as $t) { $key++; $is_first=$key==0 ? 1 : 0;$is_last=$count==$key+1 ? 1 : 0; ?>
    56                 <!--begin::Item-->
    57                 <div class="d-flex flex-stack">
    58                     <!--begin::Section-->
    59                     <div class="d-flex align-items-center flex-row-fluid flex-wrap">
    60                         <!--begin:Author-->
    61                         <div class="flex-grow-1 me-2">
    62                             <a href="<?php echo $t['url']; ?>" class="text-gray-800 text-hover-primary fs-6 fw-bold"><?php echo dr_strcut($t['title'], 15); ?></a>
    
  6. include /www/wwwroot/www.uaa5.com/dayrui/Fcms/Core/View.php   —   include()

  7. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Control/Home.php : 21   —  Phpcmf\View->display ()

    14 
    15         ob_start();
    16         \Phpcmf\Service::V()->assign([
    17             'indexc' => 1,
    18             'fix_html_now_url' => defined('IS_MOBILE') && IS_MOBILE SITE_MURL SITE_URL,
    19         ]);
    20         \Phpcmf\Service::V()->assign(\Phpcmf\Service::L('Seo')->index());
    21         \Phpcmf\Service::V()->display('index.html');
    22         $html ob_get_clean();
    23 
    24         // 开启过首页静态时
    25         if ($this->site_info[SITE_ID]['SITE_INDEX_HTML'] && !defined('SC_HTML_FILE')) {
    26             if (IS_CLIENT) {
    27                 // 自定义终端
    28                 $file \Phpcmf\Service::L('html')->get_webpath(SITE_ID'site'IS_CLIENT.'/index.html');
    
  8. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Control/Home.php : 60   —  Phpcmf\Control\Home->_index ()

    53             $this->_json(0'禁止提交,请检查提交地址是否有误');
    54         }
    55 
    56         // 挂钩点 网站首页时
    57         \Phpcmf\Hooks::trigger('cms_index');
    58         \Phpcmf\Service::L('Router')->is_redirect_url(dr_url_prefix('/'), 1);
    59 
    60         $this->_index();
    61     }
    62 
    63     /**
    64      * 404 页面
    65      */
    66     public function s404() {
    67         if (IS_DEV) {
    
  9. /www/wwwroot/www.uaa5.com/dayrui/System/Extend/Run.php : 148   —  Phpcmf\Control\Home->index ()

    141                         'value' => $value
    142                     ]);
    143 
    144                 }
    145             }
    146         }
    147 
    148         $app->$method();
    149 
    150         if (CI_DEBUG) {
    151             $tool = new \CodeIgniter\Debug\Toolbar(config(\Config\Toolbar::class));
    152             $tool->prepare($this);
    153         }
    154         
    155        
    
  10. /www/wwwroot/www.uaa5.com/dayrui/System/Init.php : 402   —  Frame\Run->bootWeb ()

    395         $tool->respond();
    396     });
    397 }
    398 
    399 
    400 // 启动框架
    401 $run = new \Frame\Run();
    402 $run->bootWeb();
    403 
    404 
    
  11. require /www/wwwroot/www.uaa5.com/dayrui/Fcms/Init.php   —   require()

  12. require /www/wwwroot/www.uaa5.com/public/index.php   —   require()

$_SERVER

Key Value
USER www
HOME /home/www
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 */*
HTTP_HOST uaa5.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.uaa5.com
SERVER_PORT 443
SERVER_ADDR 10.0.12.9
REMOTE_PORT 20433
REMOTE_ADDR 216.73.216.139
SERVER_SOFTWARE nginx/1.28.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/www.uaa5.com/public
DOCUMENT_URI /index.php
REQUEST_URI /
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/www.uaa5.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT
1764537732.646
REQUEST_TIME
1764537732

Constants

Key Value
IS_DEV
1
IS_EDIT_TPL
1
ROOTPATH /www/wwwroot/www.uaa5.com/public/
WEBPATH /www/wwwroot/www.uaa5.com/public/
FCPATH /www/wwwroot/www.uaa5.com/dayrui/
WRITEPATH /www/wwwroot/www.uaa5.com/cache/
CONFIGPATH /www/wwwroot/www.uaa5.com/config/
SELF index.php
IS_ADMIN

                                                                    
IS_VERSION
1
FRAMEPATH /www/wwwroot/www.uaa5.com/dayrui/System/
CMSPATH /www/wwwroot/www.uaa5.com/dayrui/Fcms/
MAX_CATEGORY
300
COREPATH /www/wwwroot/www.uaa5.com/dayrui/Fcms/
BASEPATH /www/wwwroot/www.uaa5.com/dayrui/System/System/
APPSPATH /www/wwwroot/www.uaa5.com/dayrui/App/
MYPATH /www/wwwroot/www.uaa5.com/dayrui/My/
TPLPATH /www/wwwroot/www.uaa5.com/template/
IS_XRDEV
0
MOBILE_TPL_DIR mobile
UEDITOR_IMG_TITLE {cms_img_title}
TESTPATH /www/wwwroot/www.uaa5.com/cache/tests/
TEMPPATH /www/wwwroot/www.uaa5.com/dayrui/Fcms/Temp/
COMPOSER_PATH /www/wwwroot/www.uaa5.com/public/vendor/autoload.php
IS_AJAX

                                                                    
IS_POST

                                                                    
IS_AJAX_POST

                                                                    
SYS_TIME
1764537732
SYS_DEBUG
1
SYS_ADMIN_CODE
0
SYS_ADMIN_LOG
0
SYS_AUTO_FORM
0
SYS_ADMIN_PAGESIZE
10
SYS_CRON_AUTH
0
SYS_TABLE_ISFOOTER
SYS_SMS_IMG_CODE
0
SYS_GO_404
SYS_THEME_ROOT_PATH
1
SYS_301
1
SYS_NOT_UPDATE
1
SYS_URL_ONLY
0
SYS_URL_REL
1
SYS_KEY PHPCMFe0bc7520aaef117545436f907728997f
SYS_API_TOKEN
SYS_CSRF
0
SYS_CSRF_TIME
0
SYS_API_REL
SYS_HTTPS
1
SYS_NOT_ADMIN_CACHE
0
SYS_ADMIN_MODE
SYS_ADMIN_LOGINS
SYS_ADMIN_LOGIN_AES
SYS_ATTACHMENT_DOWN_REMOTE
SYS_ATTACHMENT_DOWN_SIZE
SYS_ADMIN_LOGIN_TIME
SYS_LOGIN_AES
0
SYS_ADMIN_OAUTH
SYS_ADMIN_SMS_LOGIN
SYS_ADMIN_SMS_CHECK
SYS_ATTACHMENT_DB
SYS_ATTACHMENT_PAGESIZE
SYS_ATTACHMENT_GUEST
SYS_ATTACHMENT_CF
SYS_ATTACHMENT_REL
SYS_ATTACHMENT_PATH
SYS_ATTACHMENT_SAVE_TYPE
SYS_ATTACHMENT_SAVE_DIR
SYS_ATTACHMENT_SAVE_ID
SYS_ATTACHMENT_URL
SYS_AVATAR_PATH
SYS_AVATAR_URL
SYS_API_CODE
SYS_ATTACHMENT_SAFE
IS_ADMIN_CACHE 1
SQGS 迅睿CMS开源框架
CI_DEBUG
1
IS_FB_DEBUG
0
ENVIRONMENT development
SYS_CACHE
0
SYS_CACHE_TYPE
0
SYS_CACHE_SHOW
0
SYS_CACHE_LIST
0
SYS_CACHE_SEARCH
0
SYS_CACHE_SMS
0
SYS_CACHE_CRON
0
SYS_CACHE_CLEAR
0
FC_NOW_URL https://uaa5.com/
FC_NOW_HOST https://uaa5.com/
DOMAIN_NAME uaa5.com
WEB_DIR /
CMSURI
IS_API

                                                                    
IS_USE_MEMBER
IS_USE_MODULE /www/wwwroot/www.uaa5.com/dayrui/App/Module/
APPPATH /www/wwwroot/www.uaa5.com/dayrui/System/
APP_DIR
IS_MEMBER

                                                                    
IS_HOME
1
FRAME_PHP_VERSION 8.1
FRAME_NAME CodeIgniter
FRAME_VERSION 4.2
EXIT_SUCCESS
0
EXIT_ERROR
1
EXIT_CONFIG
3
EXIT_UNKNOWN_FILE
4
EXIT_UNKNOWN_CLASS
5
EXIT_UNKNOWN_METHOD
6
EXIT_USER_INPUT
7
EXIT_DATABASE
8
EXIT__AUTO_MIN
9
EXIT__AUTO_MAX
125
EVENT_PRIORITY_LOW
200
EVENT_PRIORITY_NORMAL
100
EVENT_PRIORITY_HIGH
10
IS_COMMON
1
IS_SITES
0
CMF_NAME 迅睿CMS框架开源版
CMF_VERSION 4.7.1
CMF_UPDATE_TIME 1763833255
SITE_ID
1
SITE_URL https://uaa5.com/
SITE_MURL https://uaa5.com/
SITE_NAME 宝藏汇
SITE_LOGO /static/assets/logo-web.png
SITE_IS_MOBILE
0
SITE_IS_MOBILE_HTML
0
SITE_MOBILE_DIR mobile
SITE_MOBILE_NOT_PAD
0
SITE_THUMB_WATERMARK
0
SITE_THEME default
SITE_SEOJOIN _
SITE_REWRITE
0
SITE_TEMPLATE ai-toolbox
SITE_LANGUAGE zh-cn
SITE_TIME_FORMAT Y-m-d H:i:s
ADMIN_URL https://uaa5.com/
PAY_URL https://uaa5.com/
ROOT_URL https://uaa5.com/
OAUTH_URL https://uaa5.com/
THEME_PATH /static/
LANG_PATH /api/language/zh-cn/
ROOT_THEME_PATH /static/
HOME_THEME_PATH /static/default/
MOBILE_THEME_PATH https://uaa5.com/static/default/
SYS_UPLOAD_PATH /www/wwwroot/www.uaa5.com/public/uploadfile/
SYS_UPLOAD_URL https://uaa5.com/uploadfile/
CLIENT_URL https://uaa5.com/
CLIENT_NAME pc
IS_CLIENT
MEMBER_URL https://uaa5.com/index.php?s=member
SITE_FID
0
MEMBER_CNAME 姓名
SITE_ICP

                                                                    
SITE_TONGJI

                                                                    
SITE_LOGIN_TIME
36000
SITE_SCORE 金币
SITE_EXPERIENCE 经验
IS_API_HTTP
0
USER_HTTP_CODE d7379f38cc6e343150406ec0ee69d691
IS_SHARE
1
IS_OEM_CMS
0
MOD_DIR
MODULE_NAME
MODULE_URL
SITE_TITLE 宝藏汇
IS_PC
1
IS_MOBILE

                                                                    
IS_MOBILE_USER

                                                                    
IS_COMMENT

                                                                    
  1. /www/wwwroot/www.uaa5.com/public/index.php
  2. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Init.php
  3. /www/wwwroot/www.uaa5.com/cache/config/system.php
  4. /www/wwwroot/www.uaa5.com/cache/config/domain_app.php
  5. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Core/Helper.php
  6. /www/wwwroot/www.uaa5.com/dayrui/System/Init.php
  7. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Core/Auto.php
  8. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Core/Service.php
  9. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Core/Hooks.php
  10. /www/wwwroot/www.uaa5.com/dayrui/System/Extend/Run.php
  11. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Core/Phpcmf.php
  12. /www/wwwroot/www.uaa5.com/dayrui/System/Extend/Controller.php
  13. /www/wwwroot/www.uaa5.com/dayrui/App/Tpl/Config/Auto.php
  14. /www/wwwroot/www.uaa5.com/dayrui/App/Form/Config/Auto.php
  15. /www/wwwroot/www.uaa5.com/dayrui/App/Module/Config/Auto.php
  16. /www/wwwroot/www.uaa5.com/dayrui/App/Module/Config/Hooks.php
  17. /www/wwwroot/www.uaa5.com/dayrui/App/Module/Config/Filters.php
  18. /www/wwwroot/www.uaa5.com/dayrui/System/Config/Services.php
  19. /www/wwwroot/www.uaa5.com/dayrui/System/Config/BaseService.php
  20. /www/wwwroot/www.uaa5.com/dayrui/System/Config/Factories.php
  21. /www/wwwroot/www.uaa5.com/dayrui/System/Config/Factory.php
  22. /www/wwwroot/www.uaa5.com/dayrui/System/Config/BaseConfig.php
  23. /www/wwwroot/www.uaa5.com/dayrui/System/Config/Exceptions.php
  24. /www/wwwroot/www.uaa5.com/dayrui/System/Debug/Exceptions.php
  25. /www/wwwroot/www.uaa5.com/dayrui/System/Events/Events.php
  26. /www/wwwroot/www.uaa5.com/dayrui/System/Debug/Timer.php
  27. /www/wwwroot/www.uaa5.com/dayrui/System/Config/Toolbar.php
  28. /www/wwwroot/www.uaa5.com/dayrui/System/Debug/Toolbar.php
  29. /www/wwwroot/www.uaa5.com/dayrui/System/Debug/Toolbar/Collectors/Database.php
  30. /www/wwwroot/www.uaa5.com/dayrui/System/Debug/Toolbar/Collectors/BaseCollector.php
  31. /www/wwwroot/www.uaa5.com/dayrui/System/Config/Database.php
  32. /www/wwwroot/www.uaa5.com/dayrui/System/Database/Config.php
  33. /www/wwwroot/www.uaa5.com/dayrui/System/Debug/Toolbar/Collectors/Views.php
  34. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Core/View.php
  35. /www/wwwroot/www.uaa5.com/dayrui/System/Debug/Toolbar/Collectors/Files.php
  36. /www/wwwroot/www.uaa5.com/dayrui/System/Debug/Toolbar/Collectors/Routes.php
  37. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Control/Home.php
  38. /www/wwwroot/www.uaa5.com/cache/config/site.php
  39. /www/wwwroot/www.uaa5.com/dayrui/My/Config/Version.php
  40. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Library/Cache.php
  41. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Library/Lang.php
  42. /www/wwwroot/www.uaa5.com/public/api/language/zh-cn/lang.php
  43. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Library/Input.php
  44. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Library/Security.php
  45. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Model/Member.php
  46. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Core/Model.php
  47. /www/wwwroot/www.uaa5.com/dayrui/System/Extend/Model.php
  48. /www/wwwroot/www.uaa5.com/config/database.php
  49. /www/wwwroot/www.uaa5.com/dayrui/System/Database/Database.php
  50. /www/wwwroot/www.uaa5.com/dayrui/System/Database/MySQLi/Connection.php
  51. /www/wwwroot/www.uaa5.com/dayrui/System/Database/BaseConnection.php
  52. /www/wwwroot/www.uaa5.com/dayrui/System/Database/ConnectionInterface.php
  53. /www/wwwroot/www.uaa5.com/dayrui/App/Module/Config/Run.php
  54. /www/wwwroot/www.uaa5.com/cache/config/domain_client.php
  55. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Library/Router.php
  56. /www/wwwroot/www.uaa5.com/config/hooks.php
  57. /www/wwwroot/www.uaa5.com/dayrui/System/Extend/Hook.php
  58. /www/wwwroot/www.uaa5.com/dayrui/Fcms/Library/Seo.php
  59. /www/wwwroot/www.uaa5.com/cache/template/_DS_www_DS_wwwroot_DS_www.uaa5.com_DS_template_DS_pc_DS_default_DS_home_DS_index.html.cache.php
  60. /www/wwwroot/www.uaa5.com/cache/template/_DS_www_DS_wwwroot_DS_www.uaa5.com_DS_template_DS_pc_DS_default_DS_home_DS_header.html.cache.php
  61. /www/wwwroot/www.uaa5.com/dayrui/App/Module/Action/Category.php
  62. /www/wwwroot/www.uaa5.com/dayrui/App/Module/Action/Module.php
  63. /www/wwwroot/www.uaa5.com/dayrui/System/Database/Exceptions/DatabaseException.php
  64. /www/wwwroot/www.uaa5.com/dayrui/System/Exceptions/RuntimeException.php
  65. /www/wwwroot/www.uaa5.com/dayrui/System/Exceptions/ExceptionInterface.php
  66. /www/wwwroot/www.uaa5.com/dayrui/System/Database/Exceptions/ExceptionInterface.php
  67. /www/wwwroot/www.uaa5.com/dayrui/System/Exceptions/HasExitCodeInterface.php
  68. /www/wwwroot/www.uaa5.com/dayrui/System/Debug/ExceptionHandler.php
  69. /www/wwwroot/www.uaa5.com/dayrui/System/Debug/BaseExceptionHandler.php
  70. /www/wwwroot/www.uaa5.com/dayrui/System/Debug/ExceptionHandlerInterface.php
  71. /www/wwwroot/www.uaa5.com/dayrui/System/Exceptions/Views/html/error_exception.php