मैनुअल:$wgDBserver

From mediawiki.org
This page is a translated version of the page Manual:$wgDBserver and the translation is 82% complete.
Database settings: $wgDBserver
डेटाबेस सर्वर का होस्ट नाम या आईपी पता।
Introduced in version:pre 1.1.0
Removed in version:still in use
Allowed values:(डोरी)
Default value:'localhost'

विवरण

डेटाबेस होस्ट नाम या आईपी पता। LocalSettings.php में मिला।

यदि आप गैर-मानक पोर्ट पर माई एसक्यूएल का उपयोग कर रहे हैं, तो आप इसका उपयोग कर सकते हैं 'hostname:port'-वाक्य रचना, उदाहरण के लिए $wgDBserver = '127.0.0.1:3308';. ध्यान दें कि जब आप निर्दिष्ट करते हैं तो पोर्ट नंबर का उपयोग करना localhost चूंकि होस्ट नाम का कोई प्रभाव नहीं पड़ेगा, क्योंकि माई एसक्यूएल इसके बजाय सॉकेट से कनेक्ट होगा। यदि माई एसक्यूएल सर्वर एक ही सर्वर पर है और आप गैर-मानक स्थान में सॉकेट से कनेक्ट करना चाहते हैं, तो आप इसका उपयोग कर सकते हैं 'localhost:socket'-स्थान, उदाहरण के लिए $wgDBserver = 'localhost:/var/run/mysql/mysql.sock';.

विकी के हर एक कनेक्शन के लिए डीएनएस लुकअप के ओवरहेड से बचने के लिए जहां संभव हो आईपी एड्रेस का उपयोग करें। $wgDBserver = '000.000.000.000';, $wgDBserver = "wiki.example.org"; से तेज़ होगा।
$wgDBport केवल पोस्टग्रेएसक्यूएल कॉन्फ़िगरेशन के लिए है।
विंडोज पर, बैकएंड के रूप में माई एसक्यूएल होने पर, कुछ उपयोगकर्ता रिपोर्ट करते हैं कि 127.0.0.1 के बजाय सर्वर नाम के लिए localhost का उपयोग करने से डेटाबेस से जुड़ने का समय बहुत बढ़ जाता है। इसलिए, विंडोज़ में, इसके बजाय 127.0.0.1 का उपयोग करने की अनुशंसा की जाती है localhost अगर माई एसक्यूएल एक ही मशीन पर है। देखो यह फोरम थ्रेड.

It may not work with plain IPv6 addresses, depending on the MySQL driver (libmysqlclient or mysqlnd); this is linked to this PHP bug.

Also, when $wgDBssl is used, IPv6 addresses in the field subjectAlternativeName of a certificate are not recognised (it was not implemented in PHP when the verification of IPv4 addresses in certificates was implemented [१]).

A workaround for these both cases is to use a DNS name pointing to an IPv6 address.

यह सभी देखें

  • $wgDBservers - एसएसएल एन्क्रिप्शन के लिए एकाधिक-सर्वर (प्राथमिक/प्रतिकृति) सेटअप या कस्टम प्रमाणपत्र के उपयोगकर्ताओं के लिए जहां $wgDBssl काम नहीं करता है।