跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
天灾之下:危险连接官网(建设中)
天灾之下:危险连接QQ群
天灾之下:危险连接 Bilibili
冰糖服务器
冰糖服务器QQ群
天灾之下:危险连接资料站
搜索
搜索
中文(中国大陆)
外观
创建账号
登录
个人工具
创建账号
登录
查看“︁模板:DBwarning/en”︁的源代码
模板
讨论
大陆简体
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
页面信息
[[雷光]]
外观
移至侧栏
隐藏
←
模板:DBwarning/en
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<noinclude> <languages/> </noinclude><!-- -->{{Caution|1=<nowiki/> * Do not change {{phpi|$wgDBmwschema}} after {{ll|Manual:Setup.php|Setup.php}} has been included. '''Note:''' {{ll|Manual:Setup.php|Setup.php}} initializes various paths, includes some common files, starts sessions, and performs various other setup tasks for a request. It is not related to the installation or setup of MediaWiki. * Only files in <code>{{git file|file=includes/db/}}</code> should use {{phpi|$wgDBmwschema}}, while everything else should use the {{Class doclink|Wikimedia\Rdbms\IDatabase|type=interface|anchor= aebbee8083d4650a61479f3adbf37759e|dbSchema()}} 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 {{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). The combination of {{phpi|$wgDBname}}, {{phpi|$wgDBmwschema}}, and {{phpi|$wgDBprefix}} define the current wiki's ''database domain''. This is also called the ''local database domain''. The 'dbname' and 'tablePrefix' settings in {{phpi|$wgDBservers}} and {{phpi|$wgLBFactoryConf}} only define the default DB/prefix when a connection is requested with {{phpi|DatabaseDomain::newUnspecified()->getId()}} (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. }}<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/en
。
搜索
搜索
查看“︁模板:DBwarning/en”︁的源代码
添加语言
添加话题