Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] 紧急求助:[Type] 数据库配置错误,请仔细检查 config_global.php 文件

[复制链接]
想飞蜗牛 发表于 2011-6-12 11:37:43 | 显示全部楼层 |阅读模式
本帖最后由 想飞蜗牛 于 2011-6-12 12:52 编辑

问题还没解决如图,我好像没修改什么设置,在后台出现这个提示,后台的任何设置都无法保存了,请高手指点,万分感谢!


各位大侠,我找到了之前备份的config_global.php文件,和现在的文件比对过,没有任何修改,接下来我该怎么做呢 ?请赐教!{:soso_e183:}

config_global.php文件如下:

<?php

$_config = array();
// ----------------------------  CONFIG DB  ----------------------------- //
$_config['db']['1']['dbhost'] = 'localhost';
$_config['db']['1']['dbuser'] = 'meetzh_f';
$_config['db']['1']['dbpw'] = 'meetzh';
$_config['db']['1']['dbcharset'] = 'gbk';
$_config['db']['1']['pconnect'] = '0';
$_config['db']['1']['dbname'] = 'meetzh';
$_config['db']['1']['tablepre'] = 'pre_';
// --------------------------  CONFIG MEMORY  --------------------------- //
$_config['memory']['prefix'] = 'Inf9Sk_';
$_config['memory']['eaccelerator'] = 1;
$_config['memory']['xcache'] = 1;
$_config['memory']['memcache']['server'] = '';
$_config['memory']['memcache']['port'] = 11211;
$_config['memory']['memcache']['pconnect'] = 1;
$_config['memory']['memcache']['timeout'] = 1;
// --------------------------  CONFIG SERVER  --------------------------- //
$_config['server']['id'] = 1;
// -------------------------  CONFIG DOWNLOAD  -------------------------- //
$_config['download']['readmod'] = 2;
$_config['download']['xsendfile']['type'] = '0';
$_config['download']['xsendfile']['dir'] = '/down/';
// ---------------------------  CONFIG CACHE  --------------------------- //
$_config['cache']['type'] = 'sql';
// --------------------------  CONFIG OUTPUT  --------------------------- //
$_config['output']['charset'] = 'gbk';
$_config['output']['forceheader'] = 1;
$_config['output']['gzip'] = '0';
$_config['output']['tplrefresh'] = 1;
$_config['output']['language'] = 'zh_cn';
$_config['output']['staticurl'] = 'static/';
$_config['output']['ajaxvalidate'] = '0';
// --------------------------  CONFIG COOKIE  --------------------------- //
$_config['cookie']['cookiepre'] = '0gFv_';
$_config['cookie']['cookiedomain'] = '';
$_config['cookie']['cookiepath'] = '/';
// -------------------------  CONFIG SECURITY  -------------------------- //
$_config['security']['authkey'] = 'a3ed24QH4bH1pxdV';
$_config['security']['urlxssdefend'] = 1;
$_config['security']['attackevasive'] = '0';
$_config['security']['querysafe']['status'] = 1;
$_config['security']['querysafe']['dfunction']['0'] = 'load_file';
$_config['security']['querysafe']['dfunction']['1'] = 'hex';
$_config['security']['querysafe']['dfunction']['2'] = 'substring';
$_config['security']['querysafe']['dfunction']['3'] = 'if';
$_config['security']['querysafe']['dfunction']['4'] = 'ord';
$_config['security']['querysafe']['dfunction']['5'] = 'char';
$_config['security']['querysafe']['daction']['0'] = 'intooutfile';
$_config['security']['querysafe']['daction']['1'] = 'intodumpfile';
$_config['security']['querysafe']['daction']['2'] = 'unionselect';
$_config['security']['querysafe']['daction']['3'] = '(select';
$_config['security']['querysafe']['dnote']['0'] = '/*';
$_config['security']['querysafe']['dnote']['1'] = '*/';
$_config['security']['querysafe']['dnote']['2'] = '#';
$_config['security']['querysafe']['dnote']['3'] = '--';
$_config['security']['querysafe']['dnote']['4'] = '"';
$_config['security']['querysafe']['dlikehex'] = 1;
$_config['security']['querysafe']['afullnote'] = 1;
// --------------------------  CONFIG ADMINCP  -------------------------- //
// -------- Founders: $_config['admincp']['founder'] = '1,2,3'; --------- //
$_config['admincp']['founder'] = '1';
$_config['admincp']['forcesecques'] = '0';
$_config['admincp']['checkip'] = 0;
$_config['admincp']['runquery'] = 1;
$_config['admincp']['dbimport'] = 1;

// -------------------  THE END  -------------------- //
?>




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
Freedown 发表于 2011-6-12 11:40:19 | 显示全部楼层
检查文件先
回复

使用道具 举报

 楼主| 想飞蜗牛 发表于 2011-6-12 11:41:52 | 显示全部楼层
Freedown 发表于 2011-6-12 11:40
检查文件先

请问要检查什么文件?怎么检查呢 我对这方面不是很懂,谢谢您!
回复

使用道具 举报

秋之子 发表于 2011-6-12 11:43:21 | 显示全部楼层
./config/config_global.php

这个文件 。
回复

使用道具 举报

 楼主| 想飞蜗牛 发表于 2011-6-12 11:49:47 | 显示全部楼层
<?php


$_config = array();

// ----------------------------  CONFIG DB  ----------------------------- //
$_config['db']['1']['dbhost'] = 'localhost';
$_config['db']['1']['dbuser'] = 'meetzh_f';
$_config['db']['1']['dbpw'] = 'meetzh';
$_config['db']['1']['dbcharset'] = 'gbk';
$_config['db']['1']['pconnect'] = '0';
$_config['db']['1']['dbname'] = 'meetzh';
$_config['db']['1']['tablepre'] = 'pre_';

// --------------------------  CONFIG MEMORY  --------------------------- //
$_config['memory']['prefix'] = 'Inf9Sk_';
$_config['memory']['eaccelerator'] = 1;
$_config['memory']['xcache'] = 1;
$_config['memory']['memcache']['server'] = '';
$_config['memory']['memcache']['port'] = 11211;
$_config['memory']['memcache']['pconnect'] = 1;
$_config['memory']['memcache']['timeout'] = 1;

// --------------------------  CONFIG SERVER  --------------------------- //
$_config['server']['id'] = 1;

// -------------------------  CONFIG DOWNLOAD  -------------------------- //
$_config['download']['readmod'] = 2;
$_config['download']['xsendfile']['type'] = '0';
$_config['download']['xsendfile']['dir'] = '/down/';

// ---------------------------  CONFIG CACHE  --------------------------- //
$_config['cache']['type'] = 'sql';

// --------------------------  CONFIG OUTPUT  --------------------------- //
$_config['output']['charset'] = 'gbk';
$_config['output']['forceheader'] = 1;
$_config['output']['gzip'] = '0';
$_config['output']['tplrefresh'] = 1;
$_config['output']['language'] = 'zh_cn';
$_config['output']['staticurl'] = 'static/';
$_config['output']['ajaxvalidate'] = '0';

// --------------------------  CONFIG COOKIE  --------------------------- //
$_config['cookie']['cookiepre'] = '0gFv_';
$_config['cookie']['cookiedomain'] = '';
$_config['cookie']['cookiepath'] = '/';

// -------------------------  CONFIG SECURITY  -------------------------- //
$_config['security']['authkey'] = 'a3ed24QH4bH1pxdV';
$_config['security']['urlxssdefend'] = 1;
$_config['security']['attackevasive'] = '0';
$_config['security']['querysafe']['status'] = 1;
$_config['security']['querysafe']['dfunction']['0'] = 'load_file';
$_config['security']['querysafe']['dfunction']['1'] = 'hex';
$_config['security']['querysafe']['dfunction']['2'] = 'substring';
$_config['security']['querysafe']['dfunction']['3'] = 'if';
$_config['security']['querysafe']['dfunction']['4'] = 'ord';
$_config['security']['querysafe']['dfunction']['5'] = 'char';
$_config['security']['querysafe']['daction']['0'] = 'intooutfile';
$_config['security']['querysafe']['daction']['1'] = 'intodumpfile';
$_config['security']['querysafe']['daction']['2'] = 'unionselect';
$_config['security']['querysafe']['daction']['3'] = '(select';
$_config['security']['querysafe']['dnote']['0'] = '/*';
$_config['security']['querysafe']['dnote']['1'] = '*/';
$_config['security']['querysafe']['dnote']['2'] = '#';
$_config['security']['querysafe']['dnote']['3'] = '--';
$_config['security']['querysafe']['dnote']['4'] = '"';
$_config['security']['querysafe']['dlikehex'] = 1;
$_config['security']['querysafe']['afullnote'] = 1;

// --------------------------  CONFIG ADMINCP  -------------------------- //
// -------- Founders: $_config['admincp']['founder'] = '1,2,3'; --------- //
$_config['admincp']['founder'] = '1';
$_config['admincp']['forcesecques'] = '0';
$_config['admincp']['checkip'] = 0;
$_config['admincp']['runquery'] = 1;
$_config['admincp']['dbimport'] = 1;


// -------------------  THE END  -------------------- //

?>
回复

使用道具 举报

xiaoyuwxz 发表于 2011-6-12 12:05:16 | 显示全部楼层
检查下DZX中的配置文件看,特别是数据表。
回复

使用道具 举报

 楼主| 想飞蜗牛 发表于 2011-6-12 12:05:34 | 显示全部楼层
哪位帮我看看这个文件哪里出问题了?
回复

使用道具 举报

 楼主| 想飞蜗牛 发表于 2011-6-12 12:07:00 | 显示全部楼层
xiaoyuwxz 发表于 2011-6-12 12:05
检查下DZX中的配置文件看,特别是数据表。

这个太专业了,我看不懂,请问要怎么看呢?
回复

使用道具 举报

 楼主| 想飞蜗牛 发表于 2011-6-12 12:42:02 | 显示全部楼层
各位大侠,我找到了之前备份的config_global.php文件,和现在的文件比对过,没有任何修改,接下来我该怎么做呢 ?请赐教!{:soso_e183:}
回复

使用道具 举报

deviljing 发表于 2011-6-12 20:29:20 | 显示全部楼层
刚也遇到此问题,我是刚刚在UC里修改用户名,就出现这种问题了,最新的2.0正式版
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-24 23:55 , Processed in 0.028013 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表