手册:$wgDBtype

From mediawiki.org
This page is a translated version of the page Manual:$wgDBtype and the translation is 83% complete.
数据库设置: $wgDBtype
数据库的类型。
引进版本:1.3.0
移除版本:仍在使用
允许的值:"mssql", "mysql", "oracle", "postgres", "sqlite"
默认值:'mysql'

详情

数据库的类型。

  • '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 (在版本1.7引入)
  • 'sqlite' - SQLite (在版本1.13引入)
  • 'mssql' - MS-SQL (在版本1.34移除)
  • 'oracle' - Oracle (在版本1.5引入) (在版本1.34移除)
在旧版本中可能使用"pgsql"或 "PostgreSQL"而不是"postgres"。 The documentation was updated to use "postgres" in 1.8.0, but the switch may have been made earlier.