Manual:$wgSharedTables

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgSharedTables and the translation is 40% complete.

Other languages:
English • ‎español • ‎français • ‎日本語 • ‎polski • ‎中文
Shared DB settings: $wgSharedTables
List of database tables (without prefixes) to share when $wgSharedDBManual:$wgSharedDB is enabled.
導入されたバージョン: 1.13.0 (r34353)
除去されたバージョン: 使用中
可能な値: 配列
既定値: array( 'user' ) (1.16 より前)
array( 'user', 'user_properties' ) (1.16 以降)
他の設定: アルファベット順 | 機能順

詳細[edit]

This only includes the user table by default for backwards compatibility. However you may remove it so that you can enable extensions using the shared DB without having shared users. Or you can add in another table, such as interwiki to force MediaWiki to use the shared version of the table instead.

Be careful with sharing tables. The images, revisions, pages, and many of the other tables may have bad side effects if you share them.

In 1.16 (r56741), the new table for storing user preferences was added - user_propertiesManual:user_properties table.

See Manual:Shared databaseManual:Shared database for usage information.

アップグレード[edit]

As of Mediawiki 1.21, $wgSharedTables must be temporarily cleared during upgrade. Otherwise, the shared tables are not touched at all (neither tables with $wgSharedPrefixManual:$wgSharedPrefix, nor those with $wgDBprefixManual:$wgDBprefix), which may lead to failed upgrade.

[edit]

If you wanted to share the ipblocksManual:ipblocks table table, you would use:

$wgSharedTables[] = 'ipblocks';

関連項目[edit]