跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
天灾之下:危险连接官网(建设中)
天灾之下:危险连接QQ群
天灾之下:危险连接 Bilibili
冰糖服务器
冰糖服务器QQ群
天灾之下:危险连接资料站
搜索
搜索
中文(中国大陆)
外观
创建账号
登录
个人工具
创建账号
登录
查看“︁模板:DBwarning”︁的源代码
模板
讨论
大陆简体
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
页面信息
[[雷光]]
外观
移至侧栏
隐藏
←
模板:DBwarning
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<noinclude> <languages/> </noinclude><!-- -->{{Caution|1=<nowiki/> * <translate><!--T:1--> Do not change <tvar name=1>{{phpi|$wgDBmwschema}}</tvar> after <tvar name=2>{{ll|Manual:Setup.php|Setup.php}}</tvar> has been included.</translate> '''<translate><!--T:2--> Note:</translate>''' <translate><!--T:3--> <tvar name=1>{{ll|Manual:Setup.php|Setup.php}}</tvar> initializes various paths, includes some common files, starts sessions, and performs various other setup tasks for a request.</translate> <translate><!--T:4--> It is not related to the installation or setup of MediaWiki.</translate> * <translate><!--T:5--> Only files in <tvar name=1><code>{{git file|file=includes/db/}}</code></tvar> should use <tvar name=2>{{phpi|$wgDBmwschema}}</tvar>, while everything else should use the <tvar name=3>{{Class doclink|Wikimedia\Rdbms\IDatabase|type=interface|anchor= aebbee8083d4650a61479f3adbf37759e|dbSchema()}}</tvar> method provided by the <tvar name=4><code>{{Class doclink|Wikimedia\Rdbms\IDatabase|type=interface}}</code></tvar> interface or extract it from the <tvar name=5><code>getDomainId()</code></tvar> method in either the <tvar name=6><code>{{Class doclink|Wikimedia\Rdbms\ILoadBalancer|type=interface}}</code></tvar> or the <tvar name=7><code>{{Class doclink|Wikimedia\Rdbms\ILBFactory|type=interface}}</code></tvar> interface.</translate> <translate><!--T:6--> The <tvar name=1><code>DatabaseDomain</code></tvar> class can extract such components from a database domain ID.</translate> * <translate><!--T:7--> If you configure <tvar name=1>{{phpi|$wgDBservers}}</tvar> or <tvar name=2>{{phpi|$wgLBFactoryConf}}</tvar>, you still need to define <tvar name=3>{{phpi|$wgDBname}}</tvar>, <tvar name=4>{{phpi|$wgDBmwschema}}</tvar> (if applicable for the DB type), and <tvar name=5>{{phpi|$wgDBprefix}}</tvar> (if applicable for the DB type).</translate> <translate><!--T:8--> The combination of <tvar name=1>{{phpi|$wgDBname}}</tvar>, <tvar name=2>{{phpi|$wgDBmwschema}}</tvar>, and <tvar name=3>{{phpi|$wgDBprefix}}</tvar> define the current wiki's ''database domain''.</translate> <translate><!--T:9--> This is also called the ''local database domain''.</translate> <translate><!--T:10--> The '<tvar name=1>dbname</tvar>' and '<tvar name=2>tablePrefix</tvar>' settings in <tvar name=3>{{phpi|$wgDBservers}}</tvar> and <tvar name=4>{{phpi|$wgLBFactoryConf}}</tvar> only define the default DB/prefix when a connection is requested with <tvar name=5>{{phpi|DatabaseDomain::newUnspecified()->getId()}}</tvar> (the empty string) as the database domain, e.g. <tvar name=6><code>wfGetDB( DB_REPLICA, [], <nowiki>''</nowiki> )</code></tvar>.</translate> <translate><!--T:11--> Note that functions calls like <tvar name=1><code>wfGetDB( DB_REPLICA )</code></tvar>, which simply omit the database domain, are assumed to refer to the local database domain.</translate> }}<noinclude> [[Category:Templates{{#translation:}}]] </noinclude>
该页面嵌入的页面:
模板:Caution
(
查看源代码
)
模板:Class doclink
(
查看源代码
)
模板:Dir
(
查看源代码
)
模板:Git file
(
查看源代码
)
模板:Inline-code
(
查看源代码
)
模板:Ll
(
查看源代码
)
模板:Localized link
(
查看源代码
)
模板:Pagelang
(
查看源代码
)
模板:Phpi
(
查看源代码
)
模板:Translatable
(
查看源代码
)
模板:Trim
(
查看源代码
)
模板:Yesno
(
查看源代码
)
模块:String
(
查看源代码
)
模块:Template translation
(
查看源代码
)
返回
模板:DBwarning
。
搜索
搜索
查看“︁模板:DBwarning”︁的源代码
添加语言
添加话题