Manual:$wgSharedTables/ko
| Shared DB settings: $wgSharedTables | |
|---|---|
List of database tables (without prefixes) to share when $wgSharedDB is enabled. |
|
| 이 변수가 소개된 버전: | 1.13.0 (r34353) |
| 이 변수가 사라진 버전: | 계속해서 쓰이고 있음 |
| 허용값: | (array of strings) |
| 기본값: | see below |
| 기타 설정: 알파벳 순 | 기능별 순 | |
Details
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_properties.
See 메뉴얼: 공유 데이터베이스 for usage information.
기본값
| 미디어위키 버전: | ≥ 1.39 |
$wgSharedTables = [
'user',
'user_properties',
'user_autocreate_serial',
];
| 미디어위키 버전: | 1.27 – 1.38 |
$wgSharedTables = [
'user',
'user_properties',
];
| 미디어위키 버전: | 1.13 – 1.26 |
$wgSharedTables = array( 'user', 'user_properties' );
Upgrading
As of MediaWiki 1.21, $wgSharedTables must be temporarily cleared during upgrade.
Otherwise, the shared tables are not touched at all (neither tables with $wgSharedPrefix, nor those with $wgDBprefix), which may lead to failed upgrade.
Example
If you wanted to share the ipblocks table, you would use:
$wgSharedTables[] = 'ipblocks';
같이 보기
- Manual:$wgSharedDB
- Manual:$wgSharedPrefix
- Extension:GlobalPreferences - Allows a user to select which of their preferences will be global