Changes

Jump to navigation Jump to search
2,295 bytes added ,  21:16, 17 May 2019
Updating to match new version of source page
<noinclude>
<languages/>
</noinclude>{{#switch:
| =
{{Caution|1=<nowiki/>
* Não altere <code>$wgDBmwschema</code> após o arquivo {{ll|Manual:Setup.php|Setup.php}} ter sido incluído. '''Nota:''' O arquivo {{ll|Manual:Setup.php|Setup.php}} inicializa vários caminhos, inclui alguns arquivos comuns, começa as sessões, e executa várias outras tarefas de configuração para uma solicitação. Ele não está relacionado com a instalação ou a configuração do MediaWiki.
* Only files in '''<code>{{git file|file=includes/db/}}</code>''' should use <code>$wgDBmwschema</code>, while everything else should use the {{Class doclink|Wikimedia\Rdbms\IDatabase|type=interface|anchor= aebbee8083d4650a61479f3adbf37759e|dbSchema()}}</code> method provided by the <code>{{Class doclink|Wikimedia\Rdbms\IDatabase|type=interface}}</code> interface or extract it from the <code>getDomainId()</code> method in either the <code>{{Class doclink|Wikimedia\Rdbms\ILoadBalancer|type=interface}}</code> or the <code>{{Class doclink|Wikimedia\Rdbms\ILBFactory|type=interface}}</code> interface. The <code>DatabaseDomain</code> class can extract such components from a database domain ID.
* If you configure <code>$wgDBservers</code> or <code>$wgLBFactoryConf</code>, you still need to define <code>$wgDBname</code>, <code>$wgDBmwschema</code> (if applicable for the DB type), and <code>$wgDBprefix</code> (if applicable for the DB type). The combination of <code>$wgDBname</code>, <code>$wgDBmwschema</code>, and <code>$wgDBprefix</code> define the current wiki's ''database domain''. This is also called the ''local database domain''. The 'dbname' and 'tablePrefix' settings in <code>$wgDBservers</code> and <code>$wgLBFactoryConf</code> only define the default DB/prefix when a connection is requested with <code>DatabaseDomain::newUnspecified()->getId()</code> (the empty string) as the database domain, e.g. <code>wfGetDB( DB_REPLICA, [], <nowiki>''</nowiki> )</code>. Note that functions calls like <code>wfGetDB( DB_REPLICA )</code>, which simply omit the database domain, are assumed to refer to the local database domain.
}}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:DBwarning|noshift=1}}
}}<noinclude>
[[Category:Templates{{#translation:}}]]
</noinclude>
Anonymous user

Navigation menu