Error

Unable to connect to the database. Main connection [MySQLi]: Access denied for user '****'@'localhost' (using password: YES)
无法连接到数据库,检查数据库是否启动或者数据库配置文件不对,caches/configs/database.php
/www/wwwroot/fangwenw.com/cms/libs/classes/db_mysqli.class.php(242) 搜索问题 →

/www/wwwroot/fangwenw.com/cms/libs/classes/db_mysqli.class.php at line 242

235 
236                     if ($this->link) {
237                         break;
238                     }
239                 }
240             }
241             if (!$this->link) {
242                 throw new \Error(sprintf(
243                     'Unable to connect to the database.%s%s',
244                     PHP_EOL,
245                     implode(PHP_EOL$connectionErrors)
246                 ));
247             }
248         }
249         $this->connectDuration microtime(true) - $this->connectTime;
  1. /www/wwwroot/fangwenw.com/cms/libs/classes/db_mysqli.class.php : 259   —  db_mysqli->connect ()

    252     /**
    253      * 数据库查询执行方法
    254      * @param $sql 要执行的sql语句
    255      * @return 查询资源句柄
    256      */
    257     private function execute(string $sql) {
    258         if(empty($this->link)) {
    259             $this->connect();
    260         }
    261         while ($this->link->more_results()) {
    262             $this->link->next_result();
    263             if ($res $this->link->store_result()) {
    264                 $res->free();
    265             }
    266         }
    
  2. /www/wwwroot/fangwenw.com/cms/libs/classes/db_mysqli.class.php : 314   —  db_mysqli->execute ()

    307         $group $group == '' '' ' GROUP BY '.$group;
    308         $limit $limit == '' '' ' LIMIT '.$limit;
    309         $field explode(','$data);
    310         array_walk($field, array($this'add_special_char'));
    311         $data implode(','$field);
    312 
    313         $sql 'SELECT '.$data.' FROM `'.$this->config['database'].'`.`'.$table.'`'.$where.$group.$order.$limit;
    314         $this->execute($sql);
    315         if(!is_object($this->lastqueryid)) {
    316             return $this->lastqueryid;
    317         }
    318 
    319         $datalist = array();
    320         while(($rs $this->fetch_next()) != false) {
    321             if($key) {
    
  3. /www/wwwroot/fangwenw.com/cms/libs/classes/model.class.php : 47   —  db_mysqli->select ()

    40      * @param $order         排序方式    [默认按数据库默认方式排序]
    41      * @param $group         分组方式    [默认为空]
    42      * @param $key             返回数组按键名排序
    43      * @return array        查询结果集数组
    44      */
    45     final public function select($where ''$data '*'$limit ''$order ''$group ''$key='') {
    46         if (is_array($where)) $where $this->sqls($where);
    47         return $this->db->select($data, $this->table_name, $where, $limit, $order, $group, $key);
    48     }
    49 
    50     /**
    51      * 查询多条数据并分页
    52      * @param $where
    53      * @param $order
    54      * @param $page
    
  4. /www/wwwroot/fangwenw.com/cms/modules/admin/config/hooks.php : 91   —  model->select ()

    84     $admin_db pc_base::load_model('admin_model');
    85     $admin_login_db pc_base::load_model('admin_login_model');
    86     $config getcache('common','commons');
    87     if (isset($config['safe_use']) && dr_in_array('admin'$config['safe_use'])) {
    88         // 长时间未登录的用户就锁定起来
    89         if (isset($config['safe_wdl']) && $config['safe_wdl']) {
    90             $time $config['safe_wdl'] * 3600 24;
    91             $log_lock = $admin_login_db->select('logintime < '.(SYS_TIME - $time));
    92             if ($log_lock) {
    93                 foreach ($log_lock as $t) {
    94                     if (ADMIN_FOUNDERS && !dr_in_array($t['uid'], ADMIN_FOUNDERS)) {
    95                         $admin_db->update(array('islock'=>1), array('userid'=>$t['uid']));
    96                     }
    97                 }
    98             }
    
  5. {PHP internal code}   —  application->{closure} ()

  6. /www/wwwroot/fangwenw.com/cms/libs/classes/hooks.class.php : 287   —   call_user_func()

  7. /www/wwwroot/fangwenw.com/cms/libs/classes/application.class.php : 97   —  hooks::trigger ()

     90         $this->verify();
     91         // 挂钩点 程序运行之前
     92         pc_base::load_sys_class('hooks')::trigger('cms_run');
     93         $controller $this->load_controller();
     94         // 挂钩点 程序加载之后
     95         pc_base::load_sys_class('hooks')::trigger('init');
     96         // 挂钩点 程序初始化之后
     97         pc_base::load_sys_class('hooks')::trigger('cms_init');
     98         if (IS_API === 'api') {
     99             if(intval(pc_base::load_sys_class('param')::get_cookie('_userid'))) {
    100                 if(pc_base::load_model('member_model')->get_one(array('userid'=>intval(pc_base::load_sys_class('param')::get_cookie('_userid'))),'islock')['islock']) dr_msg(0L('user_is_lock''''member'));
    101             }
    102             $op pc_base::load_sys_class('input')->get('op') && trim(pc_base::load_sys_class('input')->get('op')) ? trim(pc_base::load_sys_class('input')->get('op')) : dr_msg(0'操作不能为空');
    103             if (pc_base::load_sys_class('input')->get('callback') && !preg_match('/^[a-zA-Z_][a-zA-Z0-9_]+$/'pc_base::load_sys_class('input')->get('callback'))) '';
    104             if (!preg_match('/([^a-z_]+)/i'$op) && file_exists(CMS_PATH.'api/'.$op.'.php')) {
    
  8. /www/wwwroot/fangwenw.com/cms/libs/classes/application.class.php : 60   —  application->init ()

    53         if (IS_ADMIN) {
    54             // 开启session
    55             $this->session();
    56         }
    57         if (module_exists('content') && is_file(PC_PATH.'modules/content/config/run.php')) {
    58             require PC_PATH.'modules/content/config/run.php';
    59         }
    60         $this->init();
    61         // 挂钩点 程序结束之后
    62         pc_base::load_sys_class('hooks')::trigger('cms_close');
    63     }
    64     
    65     /**
    66      * 调用件事
    67      */
    
  9. /www/wwwroot/fangwenw.com/cms/base.php : 469   —  application->__construct ()

    462             include PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.'.class.php';
    463             $name $classname;
    464             if ($my_path self::my_path(PC_PATH.$path.DIRECTORY_SEPARATOR.$classname.'.class.php')) {
    465                 include $my_path;
    466                 $name 'MY_'.$classname;
    467             }
    468             if ($initialize) {
    469                 $classes[$key] = new $name;
    470             } else {
    471                 $classes[$key] = true;
    472             }
    473             return $classes[$key];
    474         } else {
    475             CI_DEBUG && log_message('debug''类文件:'.$path.DIRECTORY_SEPARATOR.$classname.'.class.php不存在');
    476             return false;
    
  10. /www/wwwroot/fangwenw.com/cms/base.php : 420   —  pc_base::_load_class ()

    413     /**
    414      * 加载系统类方法
    415      * @param string $classname 类名
    416      * @param string $path 扩展地址
    417      * @param intger $initialize 是否初始化
    418      */
    419     public static function load_sys_class($classname$path ''$initialize 1) {
    420         return self::_load_class($classname, $path, $initialize);
    421     }
    422     
    423     /**
    424      * 加载应用类方法
    425      * @param string $classname 类名
    426      * @param string $m 模块
    427      * @param intger $initialize 是否初始化
    
  11. /www/wwwroot/fangwenw.com/cms/base.php : 411   —  pc_base::load_sys_class ()

    404 
    405 class pc_base {
    406     
    407     /**
    408      * 初始化应用程序
    409      */
    410     public static function creat_app() {
    411         return self::load_sys_class('application');
    412     }
    413     /**
    414      * 加载系统类方法
    415      * @param string $classname 类名
    416      * @param string $path 扩展地址
    417      * @param intger $initialize 是否初始化
    418      */
    
  12. /www/wwwroot/fangwenw.com/index.php : 40   —  pc_base::creat_app ()

    33 // 判断安装
    34 if (file_exists('install') && is_file(CACHE_PATH.'install.lock')) {
    35     dr_dir_delete('install'TRUE);
    36 }
    37 // 结束,安装之后可以删除此段代码
    38 
    39 // 执行主程序
    40 pc_base::creat_app();
    

$_SERVER

Key Value
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /soft/list-83-license-4-1.html
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/2.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /soft/list-83-license-4-1.html
REMOTE_PORT 24696
SCRIPT_FILENAME /www/wwwroot/fangwenw.com/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/fangwenw.com
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /www/wwwroot/fangwenw.com
REMOTE_ADDR 18.117.158.246
SERVER_PORT 443
SERVER_ADDR 172.24.38.202
SERVER_NAME fangwenw.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at fangwenw.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_HOST fangwenw.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 */*
proxy-nokeepalive 1
H2_STREAM_TAG 2095764-18-3
H2_STREAM_ID 3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH off
H2PUSH off
HTTP2 on
SSL_TLS_SNI fangwenw.com
HTTPS on
REDIRECT_STATUS 200
REDIRECT_H2_STREAM_TAG 2095764-18-3
REDIRECT_H2_STREAM_ID 3
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSH off
REDIRECT_H2PUSH off
REDIRECT_HTTP2 on
REDIRECT_SSL_TLS_SNI fangwenw.com
REDIRECT_HTTPS on
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT
1731263948.1615                                                                    
REQUEST_TIME
1731263948                                                                    

Constants

Key Value
IS_DEV 1
IS_ADMIN
IS_MOBILE
SELF index.php
CMS_PATH /www/wwwroot/fangwenw.com/
IN_CMS 1
IN_PHPCMS 1
IS_API
IS_COLLAPI
PC_PATH /www/wwwroot/fangwenw.com/cms/
PHPCMS_PATH /www/wwwroot/fangwenw.com/
CACHE_PATH /www/wwwroot/fangwenw.com/caches/
CONFIGPATH /www/wwwroot/fangwenw.com/caches/configs/
HTTP_REFERER
SYS_START_TIME 1731263948.1634
SYS_START_MEM 512624
MIN_PHP_VERSION 7.1.0
SYS_TIMEZONE 8
CHARSET utf-8
SYS_TPL_ROOT templates/
TPLPATH /www/wwwroot/fangwenw.com/cms/templates/
SYS_TIME_FORMAT
SYS_ADMIN_PAGESIZE 30
TEMPPATH /www/wwwroot/fangwenw.com/cms/temp/
IS_AJAX
IS_POST
IS_AJAX_POST
SYS_TIME 1731263948
SYS_BDMAP_API
WEB_PATH /
SITE_THEME 0
JS_PATH http://www.phpcms10.com/statics/js/
CSS_PATH http://www.phpcms10.com/statics/css/
IMG_PATH http://www.phpcms10.com/statics/images/
MOBILE_JS_PATH http://www.phpcms10.com/mobile/statics/js/
MOBILE_CSS_PATH http://www.phpcms10.com/mobile/statics/css/
MOBILE_IMG_PATH http://www.phpcms10.com/mobile/statics/images/
APP_PATH http://www.phpcms10.com/
MOBILE_PATH http://www.phpcms10.com/mobile/
SYS_DEBUG 1
SYS_EDITOR 0
SESSION_STORAGE file
SESSION_TTL 1800
SESSION_SAVEPATH /www/wwwroot/fangwenw.com/caches/sessions/
COOKIE_PRE CMS3344DB1B5C97D_
COOKIE_DOMAIN
COOKIE_PATH
SYS_ADMIN_PATH yyadmin
NeedCheckComeUrl 1
SYS_KEY CMS3d66b72085d0a3a780ceb0a81a3543f9
SYS_LANGUAGE zh-cn
SYS_GO_404 0
SYS_301 1
SYS_URL_ONLY 0
SYS_TOKEN_NAME csrf_test_name
SYS_CSRF 0
SYS_CSRF_TIME 0
SYS_TPL_NAME default
IS_EDIT_TPL 0
SYS_ADMIN_LOG 1
SYS_GZIP 1
ADMIN_FOUNDERS
Array
(
    [0] => 1
)
                                                                    
SYS_HTML_ROOT /html
SYS_MOBILE_ROOT /mobile
SYS_KEYWORDAPI 0
SYS_BAIDU_AID
SYS_BAIDU_SKEY
SYS_BAIDU_ARCRETKEY
SYS_BAIDU_QCNUM 10
SYS_XUNFEI_AID
SYS_XUNFEI_SKEY
SYS_ATTACHMENT_STAT 1
SYS_ATTACHMENT_FILE 0
SYS_ATTACHMENT_DEL 1
SYS_ATTACHMENT_SAVE_ID 0
SYS_ATTACHMENT_CF 0
SYS_ATTACHMENT_PAGESIZE 18
SYS_ATTACHMENT_SAFE 0
SYS_ATTACHMENT_PATH
SYS_ATTACHMENT_URL
SYS_ATTACHMENT_SAVE_TYPE 0
SYS_ATTACHMENT_SAVE_DIR
CI_DEBUG 1
IS_DEBUG 0
SYS_CACHE 0
SYS_CACHE_TYPE 0
SYS_CACHE_CLEAR 0
SYS_CACHE_SHOW 0
SYS_CACHE_SMS 60
SYS_UPLOAD_PATH /www/wwwroot/fangwenw.com/uploadfile/
SYS_UPLOAD_URL http://www.phpcms10.com/uploadfile/
SYS_AVATAR_PATH /www/wwwroot/fangwenw.com/uploadfile/avatar/
SYS_AVATAR_URL http://www.phpcms10.com/uploadfile/avatar/
SYS_THUMB_PATH /www/wwwroot/fangwenw.com/uploadfile/thumb/
SYS_THUMB_URL http://www.phpcms10.com/uploadfile/thumb/
SITE_PROTOCOL https://
FC_NOW_URL https://fangwenw.com/soft/list-83-license-4-1.html
FC_NOW_HOST https://fangwenw.com/
DOMAIN_NAME fangwenw.com
WEB_DIR /
CMSURI soft/list-83-license-4-1.html
SITE_ID 1
ROOT_URL http://www.phpcms10.com/
SITE_URL http://www.phpcms10.com
SITE_MURL
ROUTE_M 404
ROUTE_C index
ROUTE_A init
IS_MEMBER
IS_HOME 1
EVENT_PRIORITY_LOW 200
EVENT_PRIORITY_NORMAL 10
EVENT_PRIORITY_HIGH 10
Path https://fangwenw.com/soft/list-83-license-4-1.html
HTTP Method GET
IP Address 18.117.158.246
Is AJAX? no
Is CLI? no
User Agent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

$_GET

Key Value
m 404
uri soft/list-83-license-4-1.html

Headers

Header Value
Host fangwenw.com
Accept-Encoding gzip, br, zstd, deflate
User-Agent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Accept */*
  1. /www/wwwroot/fangwenw.com/index.php
  2. /www/wwwroot/fangwenw.com/cms/base.php
  3. /www/wwwroot/fangwenw.com/caches/configs/system.php
  4. /www/wwwroot/fangwenw.com/caches/configs/cache.php
  5. /www/wwwroot/fangwenw.com/caches/configs/rewrite.php
  6. /www/wwwroot/fangwenw.com/cms/libs/functions/global.func.php
  7. /www/wwwroot/fangwenw.com/cms/libs/functions/extention.func.php
  8. /www/wwwroot/fangwenw.com/cms/libs/classes/cache.class.php
  9. /www/wwwroot/fangwenw.com/cms/libs/classes/application.class.php
  10. /www/wwwroot/fangwenw.com/cms/libs/classes/debug.class.php
  11. /www/wwwroot/fangwenw.com/cms/libs/classes/param.class.php
  12. /www/wwwroot/fangwenw.com/caches/configs/route.php
  13. /www/wwwroot/fangwenw.com/cms/libs/classes/input.class.php
  14. /www/wwwroot/fangwenw.com/cms/libs/classes/security.class.php
  15. /www/wwwroot/fangwenw.com/cms/modules/content/config/run.php
  16. /www/wwwroot/fangwenw.com/cms/libs/classes/service.class.php
  17. /www/wwwroot/fangwenw.com/cms/modules/collection/config/filters.php
  18. /www/wwwroot/fangwenw.com/cms/modules/template/config/filters.php
  19. /www/wwwroot/fangwenw.com/cms/modules/member/config/hooks.php
  20. /www/wwwroot/fangwenw.com/cms/libs/classes/hooks.class.php
  21. /www/wwwroot/fangwenw.com/cms/modules/member/config/filters.php
  22. /www/wwwroot/fangwenw.com/cms/modules/admin/config/hooks.php
  23. /www/wwwroot/fangwenw.com/cms/modules/admin/config/filters.php
  24. /www/wwwroot/fangwenw.com/cms/modules/attachment/config/filters.php
  25. /www/wwwroot/fangwenw.com/cms/modules/bdts/config/hooks.php
  26. /www/wwwroot/fangwenw.com/caches/configs/hooks.php
  27. /www/wwwroot/fangwenw.com/cms/modules/404/index.php
  28. /www/wwwroot/fangwenw.com/cms/model/admin_model.class.php
  29. /www/wwwroot/fangwenw.com/cms/libs/classes/model.class.php
  30. /www/wwwroot/fangwenw.com/cms/libs/classes/db_factory.class.php
  31. /www/wwwroot/fangwenw.com/caches/configs/database.php
  32. /www/wwwroot/fangwenw.com/cms/libs/classes/db_mysqli.class.php
  33. /www/wwwroot/fangwenw.com/cms/model/admin_login_model.class.php
  34. /www/wwwroot/fangwenw.com/cms/temp/errors/html/error_exception.php
Memory Usage 2MB
Peak Memory Usage: 2MB
Memory Limit: 128M