Discuz!-分库一主多从数据库分离-config_global.php-文件范例 '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...
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【修改成公众号设置的关键词】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|