Manual:$wgDBserver/hi

Category:MediaWiki configuration settings/hi#DBserverCategory:MediaWiki configuration settings introduced before version 1.1.0/hi#DBserverCategory:MediaWiki configuration settings still in use/hi#DBserverCategory:MediaWiki configuration settings containing sensitive data/hiCategory:Database variables/hi#DBserver
Database settings: $wgDBserver
डेटाबेस सर्वर का होस्ट नाम या आईपी पता।
Introduced in version:Before 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 का उपयोग करने से डेटाबेस से जुड़ने का समय बहुत बढ़ जाता है। इसलिए, विंडोज़ में, इसके बजाय $ip2 का उपयोग करने की अनुशंसा की जाती है $localhost2 अगर माई एसक्यूएल एक ही मशीन पर है। देखो यह फोरम थ्रेड. So, in windows, it's recommended to use 127.0.0.1 instead of localhost if MySQL is on the same machine. See this support desk post.

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 काम नहीं करता है।
Category:Database variables/hi Category:MediaWiki configuration settings/hi Category:MediaWiki configuration settings containing sensitive data/hi Category:MediaWiki configuration settings introduced before version 1.1.0/hi Category:MediaWiki configuration settings still in use/hi