手册:$wgDBtype

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgDBtype and the translation is 83% complete.
Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎magyar • ‎polski • ‎português do Brasil • ‎русский • ‎中文 • ‎日本語
数据库设置: $wgDBtype
数据库的类型。
引进版本:1.3.0
移除版本:仍在使用
允许的值:"mssql", "mysql", "oracle", "postgres", "sqlite"
默认值:'mysql'

详情

数据库的类型。

  • 'mssql' - MS-SQL
  • 'mysql' - MySQL or MariaDB (Will default to the newer MySQLi driver if enabled on the server. Otherwise, falls back to the legacy MySQL driver.)
  • 'oracle' - Oracle (引入 自 1.5)
  • 'postgres' - PostgreSQL (引入 自 1.7)
  • 'sqlite' - SQLite (引入 自 1.13)
在旧版本中可能使用"pgsql"或 "PostgreSQL"而不是"postgres"。 The documentation was updated to use "postgres" in 1.8.0, but the switch may have been made earlier.