Schema for mediawiki tables.It was originally only used if your backend database was Postgres/MSSQL. 從MediaWiki 1.3之後，它同樣影響其他資料庫型式。
This indicates what schema the main mediawiki tables live in, and is roughly equivalent to the way that $wgDBprefix is used by MySQL.
The installer of old MediaWiki versions were setting this to 'mediawiki' in LocalSettings.php directly, even for MySQL databases, which may cause errors when upgrading.If you get errors when upgrading to MediaWiki 1.31 or later and you're not using Postgres/MSSQL as database backend, remove this setting from LocalSettings.php.
Do not change $wgDBmwschema after Setup.php has been included.注意：Setup.php initializes various paths, includes some common files, starts sessions, and performs various other setup tasks for a request. 它与 MediaWiki 的安装或设置无关。
If you configure $wgDBservers or $wgLBFactoryConf, you still need to define $wgDBname, $wgDBmwschema (if applicable for the DB type), and $wgDBprefix (if applicable for the DB type).The combination of $wgDBname, $wgDBmwschema, and $wgDBprefix define the current wiki's database domain. 这也称为本地数据库域。 The 'dbname' and 'tablePrefix' settings in $wgDBservers and $wgLBFactoryConf only define the default DB/prefix when a connection is requested with DatabaseDomain::newUnspecified()->getId() (the empty string) as the database domain, e.g. wfGetDB( DB_REPLICA, , '' ).Note that functions calls like wfGetDB( DB_REPLICA ), which simply omit the database domain, are assumed to refer to the local database domain.
If you change this setting, you should probably create a new user (and change $wgDBuser as well), because the configuration script sets the user's default path to include the schema.