How to Customize, Modify or Change WordPress Database Connection Error Page अनुकूलित करें, संशोधित करें या बदलें WordPress डाटाबेस कनेक्शन त्रुटि पेज में कैसे
When कब WordPress WordPress , a popular blog publishing platform built in PHP and uses MySQL database, cannot connect or having problem connecting to the database (such as when database is down), or the MySQL server has too many connections exceeding maximum connection allowed (especially when your post or article is been dugg on Digg.com) and rejects or denies new incoming connections, WordPress will display a default “error establishing database connection” error message page. , एक लोकप्रिय ब्लॉग प्रकाशन PHP में निर्मित मंच और MySQL डाटाबेस का उपयोग करता है, या कनेक्ट नहीं डेटाबेस को जोड़ने की समस्या होने सकते हैं (जैसे की अनुमति दी जब डेटाबेस नीचे), या MySQL सर्वर है बहुत अधिकतम कनेक्शन से अधिक कनेक्शन है (विशेष रूप से जब तुम्हारे या पोस्ट लेख है Digg.com पर dugg गया है) और खारिज या नए आने वाले कनेक्शन से इनकार करते हैं, WordPress एक डिफ़ॉल्ट प्रदर्शित करेगा त्रुटि "डेटाबेस कनेक्शन की स्थापना" त्रुटि संदेश पृष्ठ. However, the WordPress error page, some is shown below, is not visitor friendly or user friendly, and worse, the default database error page also reveals the SQL server address and name. हालाँकि, WordPress त्रुटि पृष्ठ, कुछ नीचे दिखाया गया, मित्र या उपयोगकर्ता के अनुकूल आगंतुक, और भी बुरा नहीं है, डिफ़ॉल्ट डेटाबेस त्रुटि पृष्ठ का भी पता चलता है एसक्यूएल सर्वर पते और नाम है.
Can't select database डेटाबेस का चयन नहीं कर सकते
We were able to connect to the database server (which means your username and password is okay) but not able to select the localhost database. हमें डेटाबेस सर्वर से कनेक्ट करने में सक्षम थे (जो अपने उपयोगकर्ता नाम और पासवर्ड का मतलब है, ठीक है) पर है पा लोकलहोस्ट डेटाबेस का चयन नहीं.
* Are you sure it exists? * क्या आप सुनिश्चित हैं कि यह अस्तित्व है?
* On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. * कुछ सिस्टम को अपने डेटाबेस का नाम आपके उपयोगकर्ता नाम के साथ prefixed है पर है, तो यह username_wordpress की तरह होगा. Could that be the problem? कि समस्या हो सकती है?If you don't know how to setup a database you should contact your host. यदि आप कैसे सेटअप एक डेटाबेस आप अपने मेजबान से संपर्क करना चाहिए पता नहीं है. If all else fails you may find help at the WordPress Support Forums. अगर सब विफल रहता है और तुम WordPress सहयोग मंच में मदद मिल सकती है.
Error establishing a database connection एक डाटाबेस संबंध स्थापित करने में त्रुटि
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. यह या तो अपने WP में है कि उपयोगकर्ता नाम और पासवर्ड की जानकारी-config.php फाइल का मतलब है या गलत हम डेटाबेस सर्वर लोकलहोस्ट में नहीं संपर्क कर सकते है. This could mean your host's database server is down. यह अर्थ हो सकता है आपके मेजबान डाटाबेस सर्वर के नीचे है.
Are you sure you have the correct username and password? क्या आप सुनिश्चित हैं कि आपने सही उपयोगकर्ता नाम और पासवर्ड है?
Are you sure that you have typed the correct hostname? क्या आप सुनिश्चित हैं कि आप सही होस्टनाम टाइप है?
Are you sure that the database server is running? क्या तुम्हें यकीन है कि डाटाबेस सर्वर चल रहा है?
These default Wordpress database error pages are more meant for website administrators or webmasters rather than the public visitors. ये डिफ़ॉल्ट WordPress डेटाबेस त्रुटि पृष्ठों और प्रशासकों की वेबसाइट या वेबमास्टर्स के बजाय सार्वजनिक आगंतुकों के लिए हैं. However, you can change the error page to another different error page by modifying or altering wordings and text in the error page by customizing the wp-db.php file located in wp-include directory. लेकिन, आप को संशोधित करने या त्रुटि पृष्ठ में wordings और पाठ बदलने WP-db.php फ़ाइल WP में स्थित अनुरूपण द्वारा एक अलग त्रुटि पृष्ठ त्रुटि पेज बदल सकते हैं निर्देशिका में शामिल हैं. Here's how you can hack the Wordpress default error message. यहाँ आप WordPress डिफ़ॉल्ट त्रुटि संदेश कैसे हैक कर सकते हैं.
In wp-db.php (the file that handles the database connections that WordPress makes), you can see lines like “DB Constructor – connects to the server and selects a database” and “Select a DB (if another one needs to be selected)”. WP में (फ़ाइल db.php कि डेटाबेस कनेक्शन है कि WordPress हैंडल करता है), तो आपको "DB निर्माता - लाइन की तरह देख सकते हैं सर्वर से जोड़ता है और और एक डेटाबेस का चयन" "चुनें DB (अगर एक दूसरे की जरूरत को चुना है ) ". That's where you can alter the text and word in the error page. कि तुम त्रुटि पृष्ठ में जहां पाठ और शब्द को बदल सकते हैं. Just look carefully after the line, you will see exactly the some text and message as appeared on the database error page. बाद लाइन बस ध्यान से देखो, तुम देखना वास्तव में कुछ पाठ और संदेश के रूप में डेटाबेस त्रुटि पृष्ठ पर प्रकट हुआ. Edit them to your liking. उन्हें अपनी पसंद को संपादित करें.

Beside, from line 312 onwards is the header and footer output for the HTML of database connection error page, contains inside function named “bail”, which specifies things like the title of “WordPress: Error”. के पास हैं, रेखा से 312 के बाद शीर्ष और डेटाबेस कनेक्शन त्रुटि पेज के HTML पाद लेख के लिए उत्पादन है, अंदर "जमानत" नाम है, जो 'के WordPress शीर्षक: त्रुटि की तरह बातें निर्दिष्ट कार्य ". The “bail” function is called whenever a database connection error is encountered, and does what it's name said – bails out the error and displays an error message instead to notify the users. जमानत "समारोह" जब भी एक डेटाबेस कनेक्शन त्रुटि का सामना करना पड़ा है कहा जाता है, और है क्या नाम है ने कहा - त्रुटि बाहर bails और एक त्रुटि संदेश के बजाय उपयोगकर्ताओं को सूचित करने के प्रदर्शित करता है. You can change them if you like too. तुम उन्हें बदल अगर आप भी ऐसा कर सकते हैं.
Please take a backup of wp-db.php file before you customize or alter it. कृपया WP का बैकअप लेने के db.php फ़ाइल से पहले आप को अनुकूलित या इसे बदल. If you break the code, your website visitors and surfers will get the PHP error instead. यदि आप कोड को तोड़ने, आपकी वेबसाइट पर आगंतुकों और surfers PHP त्रुटि जगह मिल जाएगी. Beside, be careful that when you upgrade your WordPress. बगल में, सावधान है कि आप अपने WordPress जब उन्नयन होगा. If you overwrite all files when upgrade the WordPress, the wp-db.php will be replaced back with the original unchanged version too, and you have to edit the file again. यदि आप सभी फाइलें जब WordPress, WP-db.php उन्नयन अधिलेखित मूल अपरिवर्तित संस्करण के साथ वापस जाएगा भी स्थान पर, और आप फिर से फाइल को संपादित किया है. Else, backup the wp-db.php before upgrading your WordPress and restore it after upgrading is done. वरना, अपने WordPress उन्नत और उन्नयन के बाद बहाल करने से पहले WP-db.php बैकअप किया जाता है.
IMPORTANT : The page is machine translated and provided "as is" without warranty. महत्वपूर्ण: पृष्ठ की मशीन है और अनुवाद प्रदान "के रूप में वारंटी के बिना है." Machine translation may be difficult to understand. मशीन अनुवाद मुश्किल से समझ सकते हो. Please refer to कृपया उल्लेख करने original English article मूल अंग्रेजी लेख whenever possible. जब भी संभव है.
Related Articles संबंधित लेख
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page कैसे आवृत्ति या अंतराल WordPress ऑटो बचाता एक संपादन पोस्ट या पृष्ठ को बदलें
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating या भाजित WordPress पोस्ट या पृष्ठ NextPage के साथ WordPress में काम नहीं कर
- Error Has Occurred While Establishing A Connection To SQL Server 2005 Which Does Not Allow Local and Remote Connections त्रुटि एसक्यूएल सर्वर 2005 को एक कनेक्शन की स्थापना किस की अनुमति नहीं देती हुई है जबकि स्थानीय और दूरस्थ सम्पर्क
- How to Convert Character Set and Collation of WordPress Database परिवर्तित कैरेक्टर सेट और WordPress डाटाबेस के Collation कैसे
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL SQL क्वेरी WPDB में त्रुटि कक्षा
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 त्रुटि जब निर्यात डाटाबेस
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database छोटा सा भूत-00016 आवश्यक कैरेक्टर सेट रूपांतरण नहीं समर्थित त्रुटि जब Oracle डाटाबेस के लिए आयात
- Change Oracle Database User Password बदलें Oracle डाटाबेस प्रयोक्ता पासवर्ड
- Modify and Change Remote Desktop Listening Port संशोधित करें और बदलें दूरस्थ डेस्कटॉप सुनकर पोर्ट
- Oracle Database Import Error 3113/3114 Oracle डाटाबेस के आयात त्रुटि 3113/3114










































March 21st, 2009 23:51 21 मार्च 2009 23:51
Thanks! धन्यवाद!
You Saved Me Here! आप सहेजे गए मुझे यहाँ!