Manual:$wgLocalDatabases/pt
From Linux Web Expert
<translate> Database settings</translate>: $wgLocalDatabases | |
---|---|
Outras wikis neste site, podem ser administradas a partir de uma única conta de programador. |
|
<translate> Introduced in version:</translate> | 1.3.0 |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (matriz de strings) - veja abaixo |
<translate> Default value:</translate> | [] |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Detalhes
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 Extensão: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
<translate> Tracked in [[<tvar name=1>phabricator:</tvar>|Phabricator]]</translate>
<translate> Task <tvar name=1>T289704</tvar></translate>
<translate> Task <tvar name=1>T289704</tvar></translate>
For unclear reasons, since this variable is empty as default, some maintenance scripts will do nothing as default. Some of these are:
- clearInterwikiCache.php - clear the interwiki cache
- rebuildmessages.php - clear messages
- cleanupSpam.php - delete pages with spam URLs
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.
Ver também
- Manual:$wgDBname - uma da wiki atual