-
<?php /** [Discuz!] (C) 2001-2099 Comsenz Inc. config_global.php Build at 2012-07-06 10:16:22 */ $_config = array(); // ---------------------------- CONFIG DB ----------------------------- // $db = array( 'dbhost' => 'localhost', 'dbuser' => 'root', 'dbpw' => '111111', 'dbcharset' => 'gbk', 'pconnect' => '0', 'dbname' => 'ultrax', 'tablepre' => 'pre_' ); $_config['db']['1'] = $db; //$_config['db']['1']['slave']['1'] = $db; //$_config['db']['1']['slave']['1']['weight'] = '0'; //$_config['db']['1']['slave']['2'] = $db; //$_config['db']['1']['slave']['2']['weight'] = '0'; //$_config['db']['1']['slave']['3'] = $db; //$_config['db']['1']['slave']['3']['weight'] = '0'; $_config['db']['2'] = $db; $_config['db']['2']['slave']['1'] = $db; $_config['db']['2']['slave']['1']['weight'] = '5'; $_config['db']['2']['slave']['2'] = $db; $_config['db']['2']['slave']['3'] = $db; $_config['db']['3'] = $db; $_config['db']['3']['dbname'] = 'ultrax'; $_config['db']['3']['slave']['1'] = $db; $_config['db']['3']['slave']['2'] = $db; $_config['db']['3']['slave']['3'] = $db; $_config['db']['3']['slave']['3']['weight'] = '5'; $_config['db']['slave'] = 1; $dbthread = '2'; $dbpost = '3'; $_config['db']['map']['forum_debatepost'] = $dbpost; $_config['db']['map']['forum_post_moderate'] = $dbpost; $_config['db']['map']['forum_post_tableid'] = $dbpost; $_config['db']['map']['forum_post'] = $dbpost; $_config['db']['map']['forum_tradelog'] = $dbthread; $_config['db']['map']['forum_tradecomment'] = $dbthread; $_config['db']['map']['forum_trade'] = $dbthread; $_config['db']['map']['forum_threadmod'] = $dbthread; $_config['db']['map']['forum_activity'] = $dbthread; $_config['db']['map']['forum_poll'] = $dbthread; $_config['db']['map']['forum_thread_moderate'] = $dbthread; $_config['db']['map']['forum_threadimage'] = $dbthread; $_config['db']['map']['forum_forumrecommend'] = $dbthread; $_config['db']['map']['forum_moderator'] = $dbthread; $_config['db']['map']['common_tagitem'] = $dbthread; $_config['db']['map']['forum_access'] = $dbthread; $_config['db']['map']['forum_forumfield'] = $dbthread; $_config['db']['map']['forum_forum'] = $dbthread; $_config['db']['map']['forum_thread'] = $dbthread; $_config['db']['map']['forum_statlog'] = $dbthread; /** //X876 的测验配置文件 $_config['db']['1']['dbhost'] = 'localhost'; $_config['db']['1']['dbuser'] = 'root'; $_config['db']['1']['dbpw'] = 'root'; $_config['db']['1']['dbcharset'] = 'gbk'; $_config['db']['1']['pconnect'] = '0'; $_config['db']['1']['dbname'] = 'superbase'; $_config['db']['1']['tablepre'] = 'pre_'; $_config['db']['common']['slave_except_table'] = ''; $_config['db']['2']['dbhost'] = '2.cn'; $_config['db']['2']['dbuser'] = 'root'; $_config['db']['2']['dbpw'] = 'root'; $_config['db']['2']['dbcharset'] = 'gbk'; $_config['db']['2']['pconnect'] = '0'; $_config['db']['2']['dbname'] = 'superbase_2'; $_config['db']['2']['tablepre'] = 'pre_'; $_config['db']['3']['dbhost'] = '3.cn'; $_config['db']['3']['dbuser'] = 'root'; $_config['db']['3']['dbpw'] = 'root'; $_config['db']['3']['dbcharset'] = 'gbk'; $_config['db']['3']['pconnect'] = '0'; $_config['db']['3']['dbname'] = 'superbase_3'; $_config['db']['3']['tablepre'] = 'pre_'; $_config['db']['4']['dbhost'] = '4.cn'; $_config['db']['4']['dbuser'] = 'root'; $_config['db']['4']['dbpw'] = 'root'; $_config['db']['4']['dbcharset'] = 'gbk'; $_config['db']['4']['pconnect'] = '0'; $_config['db']['4']['dbname'] = 'superbase_4'; $_config['db']['4']['tablepre'] = 'pre_'; $_config['db']['5']['dbhost'] = '5.cn'; $_config['db']['5']['dbuser'] = 'root'; $_config['db']['5']['dbpw'] = 'root'; $_config['db']['5']['dbcharset'] = 'gbk'; $_config['db']['5']['pconnect'] = '0'; $_config['db']['5']['dbname'] = 'superbase_5'; $_config['db']['5']['tablepre'] = 'pre_'; $_config['db']['6']['dbhost'] = '6.cn'; $_config['db']['6']['dbuser'] = 'root'; $_config['db']['6']['dbpw'] = 'root'; $_config['db']['6']['dbcharset'] = 'gbk'; $_config['db']['6']['pconnect'] = '0'; $_config['db']['6']['dbname'] = 'superbase_6'; $_config['db']['6']['tablepre'] = 'pre_'; $_config['db']['7']['dbhost'] = '7.cn'; $_config['db']['7']['dbuser'] = 'root'; $_config['db']['7']['dbpw'] = 'root'; $_config['db']['7']['dbcharset'] = 'gbk'; $_config['db']['7']['pconnect'] = '0'; $_config['db']['7']['dbname'] = 'superbase_7'; $_config['db']['7']['tablepre'] = 'pre_'; $_config['db']['8']['dbhost'] = '8.cn'; $_config['db']['8']['dbuser'] = 'root'; $_config['db']['8']['dbpw'] = 'root'; $_config['db']['8']['dbcharset'] = 'gbk'; $_config['db']['8']['pconnect'] = '0'; $_config['db']['8']['dbname'] = 'superbase_8'; $_config['db']['8']['tablepre'] = 'pre_'; $_config['db']['9']['dbhost'] = '9.cn'; $_config['db']['9']['dbuser'] = 'root'; $_config['db']['9']['dbpw'] = 'root'; $_config['db']['9']['dbcharset'] = 'gbk'; $_config['db']['9']['pconnect'] = '0'; $_config['db']['9']['dbname'] = 'superbase_9'; $_config['db']['9']['tablepre'] = 'pre_'; $_config['db']['10']['dbhost'] = '10.cn'; $_config['db']['10']['dbuser'] = 'root'; $_config['db']['10']['dbpw'] = 'root'; $_config['db']['10']['dbcharset'] = 'gbk'; $_config['db']['10']['pconnect'] = '0'; $_config['db']['10']['dbname'] = 'superbase_10'; $_config['db']['10']['tablepre'] = 'pre_'; $_config['db']['11']['dbhost'] = '11.cn'; $_config['db']['11']['dbuser'] = 'root'; $_config['db']['11']['dbpw'] = 'root'; $_config['db']['11']['dbcharset'] = 'gbk'; $_config['db']['11']['pconnect'] = '0'; $_config['db']['11']['dbname'] = 'superbase_11'; $_config['db']['11']['tablepre'] = 'pre_'; $_config['db']['12']['dbhost'] = '12.cn'; $_config['db']['12']['dbuser'] = 'root'; $_config['db']['12']['dbpw'] = 'root'; $_config['db']['12']['dbcharset'] = 'gbk'; $_config['db']['12']['pconnect'] = '0'; $_config['db']['12']['dbname'] = 'superbase_12'; $_config['db']['12']['tablepre'] = 'pre_'; $_config['db']['13']['dbhost'] = '13.cn'; $_config['db']['13']['dbuser'] = 'root'; $_config['db']['13']['dbpw'] = 'root'; $_config['db']['13']['dbcharset'] = 'gbk'; $_config['db']['13']['pconnect'] = '0'; $_config['db']['13']['dbname'] = 'superbase_13'; $_config['db']['13']['tablepre'] = 'pre_'; $_config['db']['14']['dbhost'] = '14.cn'; $_config['db']['14']['dbuser'] = 'root'; $_config['db']['14']['dbpw'] = 'root'; $_config['db']['14']['dbcharset'] = 'gbk'; $_config['db']['14']['pconnect'] = '0'; $_config['db']['14']['dbname'] = 'superbase_14'; $_config['db']['14']['tablepre'] = 'pre_'; $_config['db']['15']['dbhost'] = '15.cn'; $_config['db']['15']['dbuser'] = 'root'; $_config['db']['15']['dbpw'] = 'root'; $_config['db']['15']['dbcharset'] = 'gbk'; $_config['db']['15']['pconnect'] = '0'; $_config['db']['15']['dbname'] = 'superbase_15'; $_config['db']['15']['tablepre'] = 'pre_'; $_config['db']['16']['dbhost'] = '16.cn'; $_config['db']['16']['dbuser'] = 'root'; $_config['db']['16']['dbpw'] = 'root'; $_config['db']['16']['dbcharset'] = 'gbk'; $_config['db']['16']['pconnect'] = '0'; $_config['db']['16']['dbname'] = 'superbase_16'; $_config['db']['16']['tablepre'] = 'pre_'; $_config['db']['17']['dbhost'] = '17.cn'; $_config['db']['17']['dbuser'] = 'root'; $_config['db']['17']['dbpw'] = 'root'; $_config['db']['17']['dbcharset'] = 'gbk'; $_config['db']['17']['pconnect'] = '0'; $_config['db']['17']['dbname'] = 'superbase_17'; $_config['db']['17']['tablepre'] = 'pre_'; $_config['db']['18']['dbhost'] = '18.cn'; $_config['db']['18']['dbuser'] = 'root'; $_config['db']['18']['dbpw'] = 'root'; $_config['db']['18']['dbcharset'] = 'gbk'; $_config['db']['18']['pconnect'] = '0'; $_config['db']['18']['dbname'] = 'superbase_18'; $_config['db']['18']['tablepre'] = 'pre_'; $_config['db']['19']['dbhost'] = '19.cn'; $_config['db']['19']['dbuser'] = 'root'; $_config['db']['19']['dbpw'] = 'root'; $_config['db']['19']['dbcharset'] = 'gbk'; $_config['db']['19']['pconnect'] = '0'; $_config['db']['19']['dbname'] = 'superbase_19'; $_config['db']['19']['tablepre'] = 'pre_'; $_config['db']['20']['dbhost'] = '20.cn'; $_config['db']['20']['dbuser'] = 'root'; $_config['db']['20']['dbpw'] = 'root'; $_config['db']['20']['dbcharset'] = 'gbk'; $_config['db']['20']['pconnect'] = '0'; $_config['db']['20']['dbname'] = 'superbase_20'; $_config['db']['20']['tablepre'] = 'pre_'; $_config['db']['map']['common_admincp_perm'] = '2'; $_config['db']['map']['common_admincp_member'] = '2'; $_config['db']['map']['common_mailqueue'] = '3'; $_config['db']['map']['common_mailcron'] = '3'; $_config['db']['map']['common_member_verify_info'] = '4'; $_config['db']['map']['common_member_verify'] = '4'; $_config['db']['map']['common_member_validate'] = '4'; $_config['db']['map']['common_member_field_home_archive'] = '4'; $_config['db']['map']['common_member_field_home'] = '4'; $_config['db']['map']['common_member_field_forum_archive'] = '4'; $_config['db']['map']['common_member_field_forum'] = '4'; $_config['db']['map']['common_member_profile_archive'] = '4'; $_config['db']['map']['common_member_profile'] = '4'; $_config['db']['map']['common_member_status_archive'] = '4'; $_config['db']['map']['common_member_status'] = '4'; $_config['db']['map']['common_member_count_archive'] = '4'; $_config['db']['map']['common_member_count'] = '4'; $_config['db']['map']['common_member_archive'] = '4'; $_config['db']['map']['home_specialuser'] = '4'; $_config['db']['map']['home_show'] = '4'; $_config['db']['map']['common_member'] = '4'; $_config['db']['map']['common_pluginvar'] = '5'; $_config['db']['map']['common_plugin'] = '5'; $_config['db']['map']['forum_imagetype'] = '6'; $_config['db']['map']['common_smiley'] = '6'; $_config['db']['map']['common_stylevar'] = '7'; $_config['db']['map']['common_template'] = '7'; $_config['db']['map']['common_style'] = '7'; $_config['db']['map']['forum_attachment_unused'] = '8'; $_config['db']['map']['forum_attachment'] = '8'; $_config['db']['map']['forum_debatepost'] = '9'; $_config['db']['map']['forum_post_moderate'] = '9'; $_config['db']['map']['forum_post_tableid'] = '9'; $_config['db']['map']['forum_post'] = '9'; $_config['db']['map']['forum_tradelog'] = '10'; $_config['db']['map']['forum_tradecomment'] = '10'; $_config['db']['map']['forum_trade'] = '10'; $_config['db']['map']['forum_threadmod'] = '10'; $_config['db']['map']['forum_activity'] = '10'; $_config['db']['map']['forum_poll'] = '10'; $_config['db']['map']['forum_thread_moderate'] = '10'; $_config['db']['map']['forum_threadimage'] = '10'; $_config['db']['map']['forum_forumrecommend'] = '10'; $_config['db']['map']['forum_moderator'] = '10'; $_config['db']['map']['common_tagitem'] = '10'; $_config['db']['map']['forum_access'] = '10'; $_config['db']['map']['forum_forumfield'] = '10'; $_config['db']['map']['forum_forum'] = '10'; $_config['db']['map']['forum_thread'] = '10'; $_config['db']['map']['forum_statlog'] = '10'; $_config['db']['map']['forum_threadtype'] = '11'; $_config['db']['map']['forum_typeoption'] = '11'; $_config['db']['map']['forum_typevar'] = '11'; $_config['db']['map']['home_blogfield'] = '12'; $_config['db']['map']['home_blog_moderate'] = '12'; $_config['db']['map']['home_blog'] = '12'; $_config['db']['map']['home_pic_moderate'] = '13'; $_config['db']['map']['home_album'] = '13'; $_config['db']['map']['home_picfield'] = '13'; $_config['db']['map']['home_pic'] = '13'; $_config['db']['map']['common_mytask'] = '14'; $_config['db']['map']['common_task'] = '14'; $_config['db']['map']['home_comment_moderate'] = '15'; $_config['db']['map']['home_comment'] = '15'; $_config['db']['map']['home_doing_moderate'] = '16'; $_config['db']['map']['home_doing'] = '16'; $_config['db']['map']['home_share_moderate'] = '17'; $_config['db']['map']['home_share'] = '17'; $_config['db']['map']['portal_article_moderate'] = '18'; $_config['db']['map']['portal_article_title'] = '18'; $_config['db']['map']['portal_article_count'] = '18'; $_config[
声明:有的资源均来自网络转载,版权归原作者所有,如有侵犯到您的权益 请联系邮箱:123456@qq.com 我们将配合处理!
原文地址:Discuz!-分库一主多从数据库分离-config_global.php-文件范例发布于2023-03-04 17:57:08
相关推荐微信号已复制,请打开微信添加咨询详情!-->