durpal 主从数据库同步,那位大哥帮帮忙啊

论坛:

正在研究drupal 的master/salve 参考了http://drupal.org/node/469274。但是还是不行,是不是还要需要其他的配置啊。那位大哥帮帮忙啊

分类:

修改drupal网站配置文件setting.php,以drupaluser.org为例:

$databases['default']['default'] = array(
'driver' => 'mysql',
'database' => 'drupaluser',
'username' => 'username',
'password' => 'password',
'host' => 'drupaluser.org',
);
$databases['default']['slave'][] = array(
'driver' => 'mysql',
'database' => 'drupaluser_slave',
'username' => 'username',
'password' => 'password',
'host' => 'slave.drupaluser.org',
);