无法连接数据库:Connection refused
> /app/base/lib/db/connections.php:184
| > | #0 | trigger_error(...string(40) "无法连接数据库:Connection refused"
,'256') | connections.php:184 |
| #1 | base_db_connections->_connect('127.0.0.1','yxpqqcr_cn','hw9tmmiHd7NbFeKh','yxpqqcr_cn') | connections.php:173 |
| #2 | base_db_connections->_rw_conn() | connections.php:158 |
| #3 | base_db_connections->_ro_conn() | connections.php:98 |
| #4 | base_db_connections->select(...string(62) "SELECT * FROM `sdb_site_modules` WHERE 1=1 AND enable = 'true'"
) | mysql.php:41 |
| #5 | dbeav_select_mysql->select() | mysql.php:100 |
| #6 | dbeav_select_mysql->fetch_all() | base.php:20 |
| #7 | site_module_base->assemble_config() | router.php:82 |
| #8 | site_router->__construct(object(appobject(app)#2 (23) {
["__render":"app":private]=>
NULL
["__router":"app":private]=>
NULL
["__define":"app":private]=>
NULL
["__taskrunner":"app":private]=>
NULL
["__checkVaryArr":"app":private]=>
array(0) {
}
["__langPack":"app":private]=>
array(0) {
}
["__installed":"app":private]=>
NULL
["__actived":"app":private]=>
NULL
["__setting":"app":private]=>
object(base_setting)#4 (4) {
["app"]=>
*RECURSION*
["__source_file_path"]=>
string(44) "/www/wwwroot/yxpqqcr.cn/app/site/setting.php"
["__app_conf":"base_setting":private]=>
array(0) {
}
["__app_setting":"base_setting":private]=>
array(11) {
["base.site_params_separator"]=>
array(5) {
["type"]=>
int(2)
["default"]=>
string(1) "-"
["required"]=>
bool(true)
["options"]=>
array(1) {
["-"]=>
string(1) "-"
}
["desc"]=>
string(18) "URL参数分隔符"
}
["base.site_page_cache"]=>
array(4) {
["type"]=>
int(3)
["default"]=>
string(4) "true"
["required"]=>
bool(true)
["desc"]=>
string(18) "启用全页缓存"
}
["base.enable_site_uri_expanded"]=>
array(5) {
["type"]=>
int(3)
["default"]=>
string(4) "true"
["required"]=>
bool(true)
["desc"]=>
string(15) "启用扩展名"
["javascript"]=>
string(485) " var _site_uri_expanded_name = $$('input[name^=set[base.site_uri_expanded_name]').getParent('tr');
$$('input[name^=set[base.enable_site_uri_expanded]').addEvent('click',function(e){if(this.value=='false'){_site_uri_expanded_name.setStyle('display','none');}else {_site_uri_expanded_name.setStyle('display','');}});$$('input[name^=set[base.enable_site_uri_expanded]').each(function(item){if(item.checked && item.value=='false')_site_uri_expanded_name.setStyle('display','none');});
"
}
["base.site_uri_expanded_name"]=>
array(4) {
["type"]=>
int(0)
["required"]=>
bool(true)
["default"]=>
string(4) "html"
["desc"]=>
string(22) "URL扩展名(例:html)"
}
["base.check_uri_expanded_name"]=>
array(4) {
["type"]=>
int(3)
["required"]=>
bool(true)
["default"]=>
string(4) "true"
["desc"]=>
string(24) "启用URL扩展名检查"
}
["site.name"]=>
array(5) {
["type"]=>
int(0)
["vtype"]=>
string(9) "maxLength"
["default"]=>
string(30) "点此设置您商店的名称"
["desc"]=>
string(12) "站点名称"
["javascript"]=>
string(93) "validatorMap.set("maxLength",["最大长度32个字",function(el,v){return v.length < 33;}]);"
}
["page.default_title"]=>
array(3) {
["type"]=>
int(0)
["default"]=>
string(0) ""
["desc"]=>
string(18) "网页默认标题"
}
["page.default_keywords"]=>
array(3) {
["type"]=>
int(0)
["default"]=>
string(0) ""
["desc"]=>
string(21) "网页默认关键字"
}
["page.default_description"]=>
array(3) {
["type"]=>
int(4)
["default"]=>
string(0) ""
["desc"]=>
string(18) "网页默认简介"
}
["system.foot_edit"]=>
array(3) {
["type"]=>
string(10) "SET_T_HTML"
["desc"]=>
string(18) "网页底部信息"
["default"]=>
string(502) ""
}
["system.site_icp"]=>
array(3) {
["type"]=>
int(0)
["default"]=>
string(0) ""
["desc"]=>
string(9) "备案号"
}
}
}
["app_id"]=>
string(4) "site"
["app_dir"]=>
string(32) "/www/wwwroot/yxpqqcr.cn/app/site"
["public_app_dir"]=>
string(39) "/www/wwwroot/yxpqqcr.cn/public/app/site"
["res_url"]=>
string(42) "https://yxpqqcr.cn/public/app/site/statics"
["favicon"]=>
string(42) "https://yxpqqcr.cn/public/app/site/statics"
["res_full_url"]=>
string(42) "https://yxpqqcr.cn/public/app/site/statics"
["lang_url"]=>
string(39) "https://yxpqqcr.cn/public/app/site/lang"
["lang_full_url"]=>
string(39) "https://yxpqqcr.cn/public/app/site/lang"
["widgets_url"]=>
string(42) "https://yxpqqcr.cn/public/app/site/widgets"
["widgets_full_url"]=>
string(42) "https://yxpqqcr.cn/public/app/site/widgets"
["res_dir"]=>
string(47) "/www/wwwroot/yxpqqcr.cn/public/app/site/statics"
["widgets_dir"]=>
string(47) "/www/wwwroot/yxpqqcr.cn/public/app/site/widgets"
["lang_dir"]=>
string(44) "/www/wwwroot/yxpqqcr.cn/public/app/site/lang"
["_lang_resource"]=>
NULL
}
)) | app.php:87 |
| #9 | app->router() | kernel.php:164 |
| #10 | kernel::boot() | index.php:5 |