I'm having problems with Drupal 7.7 using a subordinate MySQL database.
My settings.php is as follows:
$databases['default']['default'] = array( 'driver' => 'mysql', 'database' => 'my_db', 'username' => 'dbuser', 'password' => 'dbpw', 'host' => 'db-ip-address' ); $databases['default']['slave'][] = array( 'driver' => 'mysql', 'database' => 'my_db', 'username' => 'dbuser', 'password' => 'dbpw', 'host' => '127.0.0.1' );
Replication itself works great. When I add new content to the site, it is quickly replicated to the subordinate.
However, looking at tcpdump, I never see a local database call.
Is there something I'm missing to enable Drupal to use a slave?
Brian source share