Manual:External Storage

From MediaWiki.org
Jump to: navigation, search

External storage stores page text on a separate DB server to the main wiki database.

[edit] How to set it up

  • Create the database. In most cases you want to give it the same name, username and password as the wiki's main database (other usernames and passwords are supported by using an LBFactory_Multi
  • Source maintenance/storage/blobs.sql using php maintenance/sql.php maintenance/storage/blobs.sql.
  • Configure it locally, add to LocalSettings.php:
$wgExternalStores = array('DB');
$wgExternalServers = array( 'cluster1' => array( 'master-server', 'slave-1', 'slave-2' ) );
$wgDefaultExternalStore = 'DB://cluster1';
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox