The wiki ID (or database ID) is the most common way of identifying a wiki within a wiki farm in MediaWiki.
When every wiki is in a separate database, it is simply the database name; when multiple wikis share a database and are differentiated with table prefixes, it is in the form {{tag2|plain=1|db name}}-{{tag2|plain=1|table prefix}}
.
It can be retrieved by calling WikiMap::getCurrentWikiId()
(in older versions of MediaWiki, wfWikiID()
).
It is used for getting a database connection for a given wiki (see LoadBalancer::getConnection()
) and in $wgConf , among other things.
See also
- $wgDBname
- $wgDBprefix
- Wikimedia\Rdbms\DatabaseDomain
- wfWikiID()
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.