Manual:$wgDBprefix

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgDBprefix and the translation is 21% complete.

Other languages:
català • ‎Deutsch • ‎English • ‎español • ‎فارسی • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
Database settings: $wgDBprefix
Table name prefix.
Introducido en la versión: 1.4.0
Eliminado en la versión: aún se usa
Valores permitidos: (cadena)
Valor predeterminado: ''

Otros configuración: Alfabéticamente | Por Función

Detalles[edit]

Table name prefix. If you only have access to a single database and wish to install more than one version of MediaWiki, or have other applications that also use the database, you can give the table names a unique prefix to stop any naming conflicts or confusion.

For example, if you use the prefix 'wiki_' then the table 'page' will be named 'wiki_page' instead.

You need to set this at the time of initial configuration, or manually change the table names at a later date. Changing this setting does not automatically update the names of the tables in your database.

This setting is not used if your database is Postgres: instead, schemas are used (see $wgDBmwschemaManual:$wgDBmwschema).

Common value[edit]

Many installers set the database table prefix "$wgDBprefix" to "mw_" by default. [1][2][3]

References[edit]

  1. Mark S. Choate. "Professional Wikis". p. 34.
  2. Daniel J. Barrett. "MediaWiki: Wikipedia and Beyond". p. 186.
  3. "Table prefix for db tables".

See also[edit]