Manual:$wgDBtype

From Linux Web Expert

<translate> Database settings</translate>: $wgDBtype
Type of database.
<translate> Introduced in version:</translate>1.3.0
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>"mssql", "mysql", "oracle", "postgres", "sqlite"
<translate> Default value:</translate>'mysql'

Details

Type of database.

  • 'mysql' - MySQL or MariaDB (Will default to the newer MySQLi driver if enabled on the server. Otherwise, falls back to the legacy MySQL driver.)
  • 'postgres' - PostgreSQL <translate> (introduced in <tvar
  • 'sqlite' - SQLite <translate> (introduced in <tvar
  • 'mssql' - MS-SQL <translate> (removed in <tvar name=2>1.34</tvar>)</translate>
  • 'oracle' - Oracle <translate> (introduced in <tvar <translate> (removed in <tvar name=2>1.34</tvar>)</translate>
Older versions may have used "pgsql" or "PostgreSQL" instead of "postgres". The documentation was updated to use "postgres" in 1.8.0, but the switch may have been made earlier.