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, לא מצליח להתחבר או שיש בעיה בחיבור למסד הנתונים (כגון כאשר מסד הנתונים למטה יש קשרים), או בשרת ה-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. זה גם אומר את שם המשתמש והסיסמה מידע על הקובץ wp-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. עם זאת, אתה יכול לשנות את דף השגיאה לדף אחר שגיאה שונות על ידי שינוי או שינוי wordings טקסט בדף שגיאה על ידי התאמה אישית של הקובץ wp-db.php הממוקם wp-לכלול במדריך. 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)”. ב wp-db.php (הקובץ שמטפל חיבורים באתר זה וורדפרס עושה), אתה יכול לראות שורות כמו "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 של דף הקשר באתר שגיאה, מכיל בתוכו פונקציה בשם "ערבות", אשר מציין דברים כמו הכותרת של "וורדפרס: שגיאה". 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. אם אתה שובר את הקוד, מבקרים באתר האינטרנט שלך לגולשים יקבל את השגיאה 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. אם להחליף את כל הקבצים כאשר לשדרג את WordPress, WP-db.php תוחלף בחזרה עם הגרסה המקורית ללא שינוי מדי, ואתה צריך לערוך את הקובץ שוב. Else, backup the wp-db.php before upgrading your WordPress and restore it after upgrading is done. אחר, לגבות את 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 כיצד לשנות את תדירות או מרווח וורדפרס אוטומטי חוסך עריכת פוסט או עמוד
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating או פיצול וורדפרס פוסט או עמוד עם NextPage ב-WordPress לא תקין
- How to Convert Character Set and Collation of WordPress Database כיצד להמיר מערך תווים ואת איסוף הנתונים של וורדפרס
- Error Has Occurred While Establishing A Connection To SQL Server 2005 Which Does Not Allow Local and Remote Connections אירעה תקלה בעת יצירת חיבור ל-SQL Server 2005 אשר אינה מאפשרת מקומיים ומרוחקים חיבורי
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL שאילתת SQL שגיאה WPDB Class
- Oracle EXP-00091 Error When Export Database אורקל EXP-00091 שגיאה בעת ייצוא מסד נתונים
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database IMP-00016 תווים חובה הגדר המרות שגיאה לא נתמכות כאשר ייבוא כדי Oracle Database
- Change Oracle Database User Password שינוי Oracle Database משתמש סיסמא
- Modify and Change Remote Desktop Listening Port לשנות שינוי שולחן עבודה מרוחק פורט האזנה
- Oracle Database Import Error 3113/3114 Oracle Database ייבוא שגיאה 3113/3114










































March 21st, 2009 23:51 21 מרס 2009 23:51
Thanks! תודה!
You Saved Me Here! הצלת אותי כאן!