O'Reilly logo

Drupal 7 First Look by Mark Noble

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Master/slave replication

Drupal 7 now provides built-in support for setting up master/slave relationships for a database. This is done within the settings.php file. To specify a database connection that support master/slave relationships, you will need to define multiple targets for a single connection within your settings.php file.

Each database connection must have one default target that will be used in the event that none of the slave servers are available.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required