2025-11-17 08:29:23 — PHP8.1.32 —

CodeIgniter\Database\Exceptions\DatabaseException

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

/www/wwwroot/www.l5n5.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.l5n5.com/dayrui/System/Database/BaseConnection.php : 1595   —  CodeIgniter\Database\BaseConnection->initialize ()

    1588 
    1589         // Is there a cached result?
    1590         if (isset($this->dataCache['field_names'][$table])) {
    1591             return $this->dataCache['field_names'][$table];
    1592         }
    1593 
    1594         if (empty($this->connID)) {
    1595             $this->initialize();
    1596         }
    1597 
    1598         if (false === ($sql $this->_listColumns($tableName))) {
    1599             if ($this->DBDebug) {
    1600                 throw new DatabaseException('This feature is not available for the database you are using.');
    1601             }
    1602 
    
  2. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Model/Table.php : 156   —  CodeIgniter\Database\BaseConnection->getFieldNames ()

    149         /*
    150          * $paytable字段主键为 自定义字段rname-rid
    151          * */
    152     }
    153 
    154     // 获取字段结构
    155     public function get_field($table) {
    156         return $this->db->getFieldNames($this->dbprefix($table));
    157     }
    158 
    159     // 获取缓存的字段结构
    160     public function get_cache_field($table) {
    161 
    162         $tableinfo \Phpcmf\Service::L('cache')->get('table-'.SITE_ID);
    163         if (!$tableinfo) {
    
  3. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Core/View.php : 1165   —  Phpcmf\Model\Table->get_field ()

    1158                 // 填充当前站点id的写法
    1159                 if ($system['table_site']) {
    1160                     $system['table'] = dr_site_table_prefix($system['table_site'], SITE_ID);
    1161                 }
    1162 
    1163                 $tableinfo \Phpcmf\Service::L('cache')->get_data('table-'.$system['table']);
    1164                 if (!$tableinfo) {
    1165                     $tableinfo = \Phpcmf\Service::M('Table')->get_field($system['table']);
    1166                     \Phpcmf\Service::L('cache')->set_data('table-'.$system['table'], $tableinfo36000);
    1167                 }
    1168                 if (!$tableinfo) {
    1169                     return $this->_return($system['return'], '表('.$system['table'].')结构不存在');
    1170                 }
    1171 
    1172                 // 是否操作自定义where
    
  4. /www/wwwroot/www.l5n5.com/cache/template/_DS_www_DS_wwwroot_DS_www.l5n5.com_DS_template_DS_pc_DS_shendu_DS_home_DS_index.html.cache.php : 11   —  Phpcmf\View->list_tag ()

     4     <!-- 广告位AD1  -->
     5                         <div class="clearfix">
     6         <div id="mainbox" class="fl">
     7                              
     8                     
     9 <div class="swiper-container br">
    10     <ul class="swiper-wrapper ">
    11     <?php $list_return_ad = $this->list_tag("action=table table_site=app_dyad pid=1 status=1 order=displayorder_asc num=1  return=ad"); if ($list_return_ad && is_array($list_return_ad)) extract($list_return_ad, EXTR_OVERWRITE); $count_ad=dr_count($return_ad); if (is_array($return_ad) && $return_ad) { $key_ad=-1;  foreach ($return_ad as $ad) { $key_ad++; $is_first=$key_ad==0 ? 1 : 0;$is_last=$count_ad==$key_ad+1 ? 1 : 0; ?>
    12                 <li class="swiper-slide">
    13             <a class="link"  href="<?php echo $ad['url']; ?>" title="<?php echo $ad['name']; ?>">
    14                 <img src="<?php echo dr_get_file($ad['thumb']); ?>"  width="<?php echo $ad['width']; ?>" height="<?php echo $ad['height']; ?>" alt="<?php echo $ad['name']; ?>" />
    15                 <i class="mask"></i>
    16             </a>
    17         </li>
    18 
    
  5. include /www/wwwroot/www.l5n5.com/dayrui/Fcms/Core/View.php   —   include()

  6. /www/wwwroot/www.l5n5.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');
    
  7. /www/wwwroot/www.l5n5.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) {
    
  8. /www/wwwroot/www.l5n5.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        
    
  9. /www/wwwroot/www.l5n5.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 
    
  10. require /www/wwwroot/www.l5n5.com/dayrui/Fcms/Init.php   —   require()

  11. require /www/wwwroot/www.l5n5.com/public/index.php   —   require()

$_SERVER

Key Value
USER www
HOME /home/www
HTTP_CONNECTION Keep-Alive
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Sat, 06 Sep 2025 04:19:46 GMT
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
PATH_INFO
HTTP_HOST l5n5.com
REDIRECT_STATUS 200
SERVER_NAME www.l5n5.com
SERVER_PORT 80
SERVER_ADDR 172.27.181.60
REMOTE_PORT 41720
REMOTE_ADDR 18.97.14.85
SERVER_SOFTWARE nginx/1.26.3
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.l5n5.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.l5n5.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT
1763339363.5164
REQUEST_TIME
1763339363

Constants

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

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

                                                                    
IS_POST

                                                                    
IS_AJAX_POST

                                                                    
SYS_TIME
1763339363
SYS_DEBUG
0
SYS_ADMIN_CODE
0
SYS_ADMIN_LOG
0
SYS_AUTO_FORM
0
SYS_ADMIN_PAGESIZE
10
SYS_CRON_AUTH
0
SYS_TABLE_ISFOOTER
0
SYS_SMS_IMG_CODE
0
SYS_GO_404
0
SYS_THEME_ROOT_PATH
1
SYS_301
1
SYS_NOT_UPDATE
1
SYS_URL_ONLY
0
SYS_URL_REL
1
SYS_KEY PHPCMF5ec3b17067c023297ed52f615cf4f50d
SYS_API_TOKEN
SYS_CSRF
0
SYS_CSRF_TIME
0
SYS_API_REL
0
SYS_HTTPS
1
SYS_NOT_ADMIN_CACHE
0
SYS_ADMIN_MODE
0
SYS_ADMIN_LOGINS
10
SYS_ADMIN_LOGIN_AES
SYS_ATTACHMENT_DOWN_REMOTE
0
SYS_ATTACHMENT_DOWN_SIZE
50
SYS_ADMIN_LOGIN_TIME
0
SYS_LOGIN_AES
0
SYS_ADMIN_OAUTH
0
SYS_ADMIN_SMS_LOGIN
0
SYS_ADMIN_SMS_CHECK
0
SYS_ATTACHMENT_DB
1
SYS_ATTACHMENT_PAGESIZE
36
SYS_ATTACHMENT_GUEST
0
SYS_ATTACHMENT_CF
1
SYS_ATTACHMENT_REL
1
SYS_ATTACHMENT_PATH
SYS_ATTACHMENT_SAVE_TYPE
0
SYS_ATTACHMENT_SAVE_DIR
SYS_ATTACHMENT_SAVE_ID
0
SYS_ATTACHMENT_URL
SYS_AVATAR_PATH
SYS_AVATAR_URL
SYS_API_CODE
0
SYS_ATTACHMENT_SAFE
0
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
3
SYS_CACHE_CLEAR
0
FC_NOW_URL http://l5n5.com/
FC_NOW_HOST http://l5n5.com/
DOMAIN_NAME l5n5.com
WEB_DIR /
CMSURI
IS_API

                                                                    
IS_USE_MEMBER
IS_USE_MODULE /www/wwwroot/www.l5n5.com/dayrui/App/Module/
APPPATH /www/wwwroot/www.l5n5.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 1763302956
SITE_ID
1
SITE_URL https://www.l5n5.com/
SITE_MURL https://www.l5n5.com/
SITE_NAME 深度资讯
SITE_LOGO https://www.l5n5.com/uploadfile/202408/a2d0602feca7.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 shendu
SITE_SEOJOIN -
SITE_REWRITE
0
SITE_TEMPLATE shendu
SITE_LANGUAGE zh-cn
SITE_TIME_FORMAT Y-m-d
ADMIN_URL https://l5n5.com/
PAY_URL https://www.l5n5.com/
ROOT_URL https://www.l5n5.com/
OAUTH_URL https://www.l5n5.com/
THEME_PATH /static/
LANG_PATH /api/language/zh-cn/
ROOT_THEME_PATH /static/
HOME_THEME_PATH /static/shendu/
MOBILE_THEME_PATH https://www.l5n5.com/static/shendu/
SYS_UPLOAD_PATH /www/wwwroot/www.l5n5.com/public/uploadfile/
SYS_UPLOAD_URL http://l5n5.com/uploadfile/
CLIENT_URL https://www.l5n5.com/
CLIENT_NAME pc
IS_CLIENT
MEMBER_URL https://www.l5n5.com/index.php?s=member
SITE_FID
0
MEMBER_CNAME 姓名
SITE_ICP 沪ICP备2024084730号-5
SITE_TONGJI
SITE_LOGIN_TIME
36000
SITE_SCORE 金币
SITE_EXPERIENCE 经验
IS_API_HTTP
0
USER_HTTP_CODE b6d7252309f9a86f07f315b84e11d2f0
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.l5n5.com/public/index.php
  2. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Init.php
  3. /www/wwwroot/www.l5n5.com/config/custom.php
  4. /www/wwwroot/www.l5n5.com/cache/config/system.php
  5. /www/wwwroot/www.l5n5.com/cache/config/cache.php
  6. /www/wwwroot/www.l5n5.com/cache/config/domain_app.php
  7. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Core/Helper.php
  8. /www/wwwroot/www.l5n5.com/dayrui/System/Init.php
  9. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Core/Auto.php
  10. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Core/Service.php
  11. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Core/Hooks.php
  12. /www/wwwroot/www.l5n5.com/dayrui/System/Extend/Run.php
  13. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Core/Phpcmf.php
  14. /www/wwwroot/www.l5n5.com/dayrui/System/Extend/Controller.php
  15. /www/wwwroot/www.l5n5.com/dayrui/App/Safe/Config/Hooks.php
  16. /www/wwwroot/www.l5n5.com/dayrui/App/Tag/Config/Hooks.php
  17. /www/wwwroot/www.l5n5.com/dayrui/App/Module/Config/Auto.php
  18. /www/wwwroot/www.l5n5.com/dayrui/App/Module/Config/Hooks.php
  19. /www/wwwroot/www.l5n5.com/dayrui/App/Module/Config/Filters.php
  20. /www/wwwroot/www.l5n5.com/dayrui/App/Weblog/Config/Hooks.php
  21. /www/wwwroot/www.l5n5.com/dayrui/System/Config/Services.php
  22. /www/wwwroot/www.l5n5.com/dayrui/System/Config/BaseService.php
  23. /www/wwwroot/www.l5n5.com/dayrui/System/Config/Factories.php
  24. /www/wwwroot/www.l5n5.com/dayrui/System/Config/Factory.php
  25. /www/wwwroot/www.l5n5.com/dayrui/System/Config/BaseConfig.php
  26. /www/wwwroot/www.l5n5.com/dayrui/System/Config/Exceptions.php
  27. /www/wwwroot/www.l5n5.com/dayrui/System/Debug/Exceptions.php
  28. /www/wwwroot/www.l5n5.com/dayrui/System/Events/Events.php
  29. /www/wwwroot/www.l5n5.com/dayrui/System/Debug/Timer.php
  30. /www/wwwroot/www.l5n5.com/dayrui/System/Config/Toolbar.php
  31. /www/wwwroot/www.l5n5.com/dayrui/System/Debug/Toolbar.php
  32. /www/wwwroot/www.l5n5.com/dayrui/System/Debug/Toolbar/Collectors/Database.php
  33. /www/wwwroot/www.l5n5.com/dayrui/System/Debug/Toolbar/Collectors/BaseCollector.php
  34. /www/wwwroot/www.l5n5.com/dayrui/System/Config/Database.php
  35. /www/wwwroot/www.l5n5.com/dayrui/System/Database/Config.php
  36. /www/wwwroot/www.l5n5.com/dayrui/System/Debug/Toolbar/Collectors/Views.php
  37. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Core/View.php
  38. /www/wwwroot/www.l5n5.com/dayrui/System/Debug/Toolbar/Collectors/Files.php
  39. /www/wwwroot/www.l5n5.com/dayrui/System/Debug/Toolbar/Collectors/Routes.php
  40. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Control/Home.php
  41. /www/wwwroot/www.l5n5.com/cache/config/site.php
  42. /www/wwwroot/www.l5n5.com/dayrui/My/Config/Version.php
  43. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Library/Cache.php
  44. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Library/Lang.php
  45. /www/wwwroot/www.l5n5.com/public/api/language/zh-cn/lang.php
  46. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Library/Input.php
  47. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Library/Security.php
  48. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Model/Member.php
  49. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Core/Model.php
  50. /www/wwwroot/www.l5n5.com/dayrui/System/Extend/Model.php
  51. /www/wwwroot/www.l5n5.com/config/database.php
  52. /www/wwwroot/www.l5n5.com/dayrui/System/Database/Database.php
  53. /www/wwwroot/www.l5n5.com/dayrui/System/Database/MySQLi/Connection.php
  54. /www/wwwroot/www.l5n5.com/dayrui/System/Database/BaseConnection.php
  55. /www/wwwroot/www.l5n5.com/dayrui/System/Database/ConnectionInterface.php
  56. /www/wwwroot/www.l5n5.com/dayrui/App/Module/Config/Run.php
  57. /www/wwwroot/www.l5n5.com/cache/config/domain_client.php
  58. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Library/Router.php
  59. /www/wwwroot/www.l5n5.com/config/hooks.php
  60. /www/wwwroot/www.l5n5.com/dayrui/System/Extend/Hook.php
  61. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Library/Seo.php
  62. /www/wwwroot/www.l5n5.com/cache/template/_DS_www_DS_wwwroot_DS_www.l5n5.com_DS_template_DS_pc_DS_shendu_DS_home_DS_index.html.cache.php
  63. /www/wwwroot/www.l5n5.com/cache/template/_DS_www_DS_wwwroot_DS_www.l5n5.com_DS_template_DS_pc_DS_shendu_DS_home_DS_header.html.cache.php
  64. /www/wwwroot/www.l5n5.com/dayrui/App/Module/Action/Category.php
  65. /www/wwwroot/www.l5n5.com/dayrui/System/Extend/Cache.php
  66. /www/wwwroot/www.l5n5.com/dayrui/System/Config/Cache.php
  67. /www/wwwroot/www.l5n5.com/dayrui/System/Cache/CacheFactory.php
  68. /www/wwwroot/www.l5n5.com/dayrui/System/Cache/Handlers/FileHandler.php
  69. /www/wwwroot/www.l5n5.com/dayrui/System/Cache/Handlers/BaseHandler.php
  70. /www/wwwroot/www.l5n5.com/dayrui/System/Cache/CacheInterface.php
  71. /www/wwwroot/www.l5n5.com/dayrui/System/Helpers/filesystem_helper.php
  72. /www/wwwroot/www.l5n5.com/dayrui/System/I18n/Time.php
  73. /www/wwwroot/www.l5n5.com/dayrui/System/I18n/TimeTrait.php
  74. /www/wwwroot/www.l5n5.com/dayrui/Fcms/Model/Table.php
  75. /www/wwwroot/www.l5n5.com/dayrui/System/Database/Exceptions/DatabaseException.php
  76. /www/wwwroot/www.l5n5.com/dayrui/System/Exceptions/RuntimeException.php
  77. /www/wwwroot/www.l5n5.com/dayrui/System/Exceptions/ExceptionInterface.php
  78. /www/wwwroot/www.l5n5.com/dayrui/System/Database/Exceptions/ExceptionInterface.php
  79. /www/wwwroot/www.l5n5.com/dayrui/System/Exceptions/HasExitCodeInterface.php
  80. /www/wwwroot/www.l5n5.com/dayrui/System/Debug/ExceptionHandler.php
  81. /www/wwwroot/www.l5n5.com/dayrui/System/Debug/BaseExceptionHandler.php
  82. /www/wwwroot/www.l5n5.com/dayrui/System/Debug/ExceptionHandlerInterface.php
  83. /www/wwwroot/www.l5n5.com/dayrui/System/Exceptions/Views/html/error_exception.php