How to Customize, Modify or Change WordPress Database Connection Error Page كيفية تخصيص أو تعديل أو تغيير وورد خطأ في الصفحة ربط قاعدة البيانات
When متى 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 ، لا يمكن ربط مشكلة أو لربط قاعدة البيانات (مثل قاعدة البيانات عند أسفل) ، أو خدمة ماي ارتباطات كثيرة جدا تتجاوز الحد الأقصى المسموح الصدد (لا سيما عند مشاركتك أو المقال كان dugg على Digg.com) ، ويرفض أو تنفي اتصالات الوافد الجديد ، وورد سيتم عرض افتراضية "خطأ في إنشاء قاعدة بيانات الصدد" رسالة خطأ في الصفحة. 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. ومع ذلك ، ورد خطأ في الصفحة ، ما هو مبين أدناه ، ليست صديقة للزائر أو سهلة الاستعمال ، والأسوأ من ذلك ، خطأ في قاعدة البيانات الافتراضية صفحة كما يكشف SQL عنوان واسم الخادم.
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. كنا قادرين على الدخول إلى قواعد بيانات (وهو ما يعني اسم المستخدم وكلمة المرور على ما يرام ولكن لم يتمكن من اختيار قاعدة البيانات localhost.
* 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. * وفي بعض النظم اسم قاعدة البيانات الرقمي مع اسم المستخدم الخاص بك ، لذلك سيكون بمثابة 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. إذا فشل كل شيء آخر قد يساعد في العثور على الدعم الفني المنتديات وورد.
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. إما أن هذا يعني أن اسم المستخدم وكلمة السر الخاصة بك في المعلومات الفسفور الابيض - config.php ملف غير صحيح ، أو أننا لا نستطيع الاتصال خادم قاعدة البيانات في localhost. 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. هذه التقصير وورد خطأ في قاعدة البيانات أكثر الصفحات المخصصة للمديرين على الانترنت أو الموقع وليس للجمهور الزائرين. 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. ومع ذلك ، يمكنك تغيير خطأ صفحة الى اخرى مختلفة خطأ صفحة بتعديل أو تغيير صياغة النص وخطأ في تصميم هذه الصفحة الفسفور الابيض بين الملفات الموجودة في db.php الفسفور الابيض - تشمل الدليل. Here's how you can hack the Wordpress default error message. وإليك كيف يمكنك الإختراق فإن التقصير وورد على رسالة خطأ.
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)”. في الفسفور الابيض - db.php (الملف والتي تعالج وصلات قواعد البيانات التي تجعل من وورد) ، ويمكنك ان ترى مثل خطوط "الديسيبل البناء -- ليربط بين الخادم وتختار قاعدة بيانات" و "اختر الديسيبل (إذا كان آخر لا بد من اختيار ( ". 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 فصاعدا هو رأس الصفحة وذيلها هتمل الناتج عن خطأ في قاعدة البيانات الصدد صفحة تحتوي على وظيفة داخل باسم "الكفالة" التي تنص على أشياء مثل عنوان "وورد : خطأ". 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. "الكفالة" وظيفة قاعدة بيانات كلما دعت الصدد هو خطأ المصادفة ، وتفعل ما ذكر اسم -- كفالات أصل الخطأ ويعرض رسالة خطأ بدلا من أن تخطر المستخدمين. You can change them if you like too. يمكنك تغييرها إذا أردت أيضا.
Please take a backup of wp-db.php file before you customize or alter it. يرجى اتخاذ احتياطية من الفسفور الابيض - db.php الملف قبل تخصيص أو تعديل. If you break the code, your website visitors and surfers will get the PHP error instead. إذا كنت كسر الشفرة موقعك الزوار ومتصفحي ستحصل PHP الخطأ بدلا من ذلك. Beside, be careful that when you upgrade your 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. إذا كنت فوق كل ملفات وورد فيه تطوير ، والفسفور الابيض - db.php سيستعاض الظهر مع النص الأصلي دون تغيير أيضا ، وكان لديك لتحرير الملف من جديد. Else, backup the wp-db.php before upgrading your WordPress and restore it after upgrading is done. وإلا ، فإن الفسفور الابيض الاحتياطية - 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 كيفية تغيير التردد أو الفاصلة ورد ينقذ أحد السيارات او صفحة ما بعد التحرير
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working ترقيم صفحات أو سبليت ورد بوست الصفحة أو مع وورد في NextPage غير عامل
- Error Has Occurred While Establishing A Connection To SQL Server 2005 Which Does Not Allow Local and Remote Connections حدث خطأ عند تأسيس علاقة SQL خادم 2005 لا تسمح المحلية والاتصالات عن بعد
- How to Convert Character Set and Collation of WordPress Database كيفية تحويل مجموعة الحروف وتجميع قاعدة بيانات من وورد
- WordPress MySQL SQL Query Error in WPDB Class MySQL SQL الاستعلام وورد خطأ في الدرجة WPDB
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database برنامج تحديث الصناعة - 00016 مجموعة الأحرف المطلوبة التحويل غير مدعومة خطأ عند استيراد لقاعدة بيانات أوراكل
- Oracle EXP-00091 Error When Export Database أوراكل إكسب - 00091 خطأ في قاعدة البيانات عند التصدير
- Change Oracle Database User Password قاعدة بيانات أوراكل المستخدم تغيير كلمة السر
- Oracle Database Import Error 3113/3114 خطأ في قاعدة بيانات أوراكل استيراد 3113/3114
- Modify and Change Remote Desktop Listening Port تعديل وتغيير سطح المكتب البعيد ميناء الاستماع










































March 21st, 2009 23:51 مارس 21st ، 2009 23:51
Thanks! شكرا!
You Saved Me Here! ةظوفحملا أنا كنت هنا!