Manual:$wgDBname
From MediaWiki.org
(Redirected from $wgDBname)
| Database settings: $wgDBname | |
|---|---|
| Name of the database. |
|
| Introduced in version: | pre 1.1.0 |
| Removed in version: | still in use |
| Allowed values: | (string) |
| Default value: | 'wikidb' |
Other settings: Alphabetical | By Function
Details [edit]
Name of the database used by current installation of MediaWiki.
- Caution
- Do not change
$wgDBnameafter Setup.php has been included. Note: Setup.php initializes various paths, includes some common files, starts sessions, and performs various other setup tasks for a request. It is not related to the installation or setup of MediaWiki. - Only files in include/db/ should use
$wgDBname, everything else should use thegetDBname()method provided by theDatabaseBaseclass.
See Also [edit]
- Manual:Database access – contains an overview of working with databases and database engines in MediaWiki.
| Language: | English • français • magyar • 日本語 • polski • русский |
|---|