<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3ADBwarning%2Fpl</id>
	<title>模板:DBwarning/pl - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3ADBwarning%2Fpl"/>
	<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:DBwarning/pl&amp;action=history"/>
	<updated>2026-11-17T04:37:42Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:DBwarning/pl&amp;diff=24197&amp;oldid=prev</id>
		<title>wiki&gt;FuzzyBot：​Updating to match new version of source page</title>
		<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:DBwarning/pl&amp;diff=24197&amp;oldid=prev"/>
		<updated>2025-05-18T04:47:49Z</updated>

		<summary type="html">&lt;p&gt;Updating to match new version of source page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;languages/&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{Caution|1=&amp;lt;nowiki/&amp;gt;&lt;br /&gt;
* Nie zmieniaj {{phpi|$wgDBmwschema}} po dołączeniu {{ll|Manual:Setup.php|Setup.php}}. &amp;#039;&amp;#039;&amp;#039;Uwaga:&amp;#039;&amp;#039;&amp;#039; {{ll|Manual:Setup.php|Setup.php}} inicjalizuje różne ścieżki, włączając niektóre ogólne pliki, uruchamia sesje i inne zadania konfiguracyjne dla żądania. Nie ma to nic wspólnego z instalowaniem lub konfigurowaniem MediaWiki (nie jest to plik instalatora).&lt;br /&gt;
* &amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;Only files in &amp;lt;code&amp;gt;{{git file|file=includes/db/}}&amp;lt;/code&amp;gt; should use {{phpi|$wgDBmwschema}}, while everything else should use the {{Class doclink|Wikimedia\Rdbms\IDatabase|type=interface|anchor= aebbee8083d4650a61479f3adbf37759e|dbSchema()}} method provided by the &amp;lt;code&amp;gt;{{Class doclink|Wikimedia\Rdbms\IDatabase|type=interface}}&amp;lt;/code&amp;gt; interface or extract it from the &amp;lt;code&amp;gt;getDomainId()&amp;lt;/code&amp;gt; method in either the &amp;lt;code&amp;gt;{{Class doclink|Wikimedia\Rdbms\ILoadBalancer|type=interface}}&amp;lt;/code&amp;gt; or the &amp;lt;code&amp;gt;{{Class doclink|Wikimedia\Rdbms\ILBFactory|type=interface}}&amp;lt;/code&amp;gt; interface.&amp;lt;/span&amp;gt; &amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;The &amp;lt;code&amp;gt;DatabaseDomain&amp;lt;/code&amp;gt; class can extract such components from a database domain ID.&amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;If you configure {{phpi|$wgDBservers}} or {{phpi|$wgLBFactoryConf}}, you still need to define {{phpi|$wgDBname}}, {{phpi|$wgDBmwschema}} (if applicable for the DB type), and {{phpi|$wgDBprefix}} (if applicable for the DB type).&amp;lt;/span&amp;gt; &amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;The combination of {{phpi|$wgDBname}}, {{phpi|$wgDBmwschema}}, and {{phpi|$wgDBprefix}} define the current wiki&amp;#039;s &amp;#039;&amp;#039;database domain&amp;#039;&amp;#039;.&amp;lt;/span&amp;gt; &amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;This is also called the &amp;#039;&amp;#039;local database domain&amp;#039;&amp;#039;.&amp;lt;/span&amp;gt; &amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;The &amp;#039;dbname&amp;#039; and &amp;#039;tablePrefix&amp;#039; settings in {{phpi|$wgDBservers}} and {{phpi|$wgLBFactoryConf}} only define the default DB/prefix when a connection is requested with {{phpi|DatabaseDomain::newUnspecified()-&amp;gt;getId()}} (the empty string) as the database domain, e.g. &amp;lt;code&amp;gt;wfGetDB( DB_REPLICA, [], &amp;lt;nowiki&amp;gt;&amp;#039;&amp;#039;&amp;lt;/nowiki&amp;gt; )&amp;lt;/code&amp;gt;.&amp;lt;/span&amp;gt; &amp;lt;span lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;Note that functions calls like &amp;lt;code&amp;gt;wfGetDB( DB_REPLICA )&amp;lt;/code&amp;gt;, which simply omit the database domain, are assumed to refer to the local database domain.&amp;lt;/span&amp;gt;&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Templates{{#translation:}}]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>wiki&gt;FuzzyBot</name></author>
	</entry>
</feed>