Manual:$wgDBname

From MediaWiki.org
Jump to: navigation, search

Other languages:
català • ‎Deutsch • ‎English • ‎español • ‎فارسی • ‎suomi • ‎français • ‎magyar • ‎italiano • ‎日本語 • ‎Nederlands • ‎polski • ‎português • ‎português do Brasil • ‎русский
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! Caution:
  • Do not change $wgDBname after 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 includes/db/ should use $wgDBname, everything else should use the getDBname() method provided by the DatabaseBase class.

See also[edit]