参照官网2X的介绍,按照下面的配置就行 $_config['db']['common']['slave_except_table'] = 'common_session'; $_config['db']['slave']['1']['dbhost'] = '192.168.1.2'; $_config['db']['slave']['1']['dbuser'] = 'root'; $_config['db']['slave']['1']['dbpw'] = 'password'; $_config['db']['slave']['1']['dbcharset'] = 'gbk'; $_config['db']['slave']['1']['pconnect'] = '0'; $_config['db']['slave']['1']['dbname'] = 'discuz'; $_config['db']['slave']['1']['tablepre'] = 'pre_';
但我的3.2配置文件里还有一个参数$_config['db']['slave']=''; 这个用不用配置成true啊?哪位大神给指点一下。
|