Commit d5e03ef5 authored by zhangkuanguang's avatar zhangkuanguang

数据库

parent 1b2eab83
......@@ -616,10 +616,17 @@ else
//$db_rand = $nowtime > 12 ? rand(0,1) : ($nowm == 1 ? 1 : 3);
//$db_rand = $nowtime > 12 ? 1 : rand(1,2);
//master_nj_esf_back = 172.17.1.95
$dbback_hostname = '172.17.1.31';
$db_rand = rand(1,2);
switch($db_rand)
{
case 1: $dbback_hostname = '172.17.1.31';break;
case 2: $dbback_hostname = '172.17.1.54';break;
default: $dbback_hostname = '172.17.1.31';break;
}
//从库
$db['dbback']['hostname'] = $dbback_hostname;
$db['dbback']['username'] = 'root';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment