Podręcznik:$wgLocalDatabases

From mediawiki.org
This page is a translated version of the page Manual:$wgLocalDatabases and the translation is 19% complete.
Ustawienia bazy danych: $wgLocalDatabases
Other wikis on this site, can be administered from a single developer account.
Wprowadzono w wersji:1.3.0
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(array of strings) - patrz poniżej
Domyślna wartość:[]

Szczegóły

An array of database names. E.g.,

$wgLocalDatabases = [ 'wikipedia', 'meta', 'news' ];

This is used for e.g. $wgConf (SiteConfiguration). Note that $wgConf->wikis should be the same as $wgLocalDatabases.

It is needed to run a wiki family , for example by using Extension:CentralAuth .

It is also in use by some maintenance scripts like:

User rights on other wikis on this site can be administered from a single developer account (permission: userrights-interwiki).

Troubleshooting

For unclear reasons, since this variable is empty as default, some maintenance scripts will do nothing as default. Some of these are:

In fact, these scripts do operations on your "local databases" but $wgDBname is not considered one of them as default. A useful contribution would be to clarify this.

Zobacz też