How to Customize, Modify or Change WordPress Database Connection Error Page Paano Customize, Baguhin o Palitan WordPress Database Connection Error Page
When Kailan 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. , Isang popular na blog na naglalathala platform nakapaloob sa PHP at gumagamit ng MySQL database, hindi maaaring kumonekta o pagkakaroon ng problema sa pagkonekta sa ang database (tulad ng kapag ang database ay down), o ang MySQL server ay may masyadong maraming mga koneksyon hihigit sa pinakamataas na ipinahihintulot ng koneksyon (lalo na kapag ang iyong mga post o artikulong ito ay nai-dugg sa Digg.com) at rejects o denies bagong papasok na koneksyon, WordPress ay magpapakita ng isang default na "error sa pagtaguyod ng database ng koneksyon" error na mensahe na pahina. 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. Gayunman, ang mga pahina ng error sa WordPress, ang ilang ay ipinapakita sa ibaba, ito ay hindi na bisita o friendly user friendly, at mas masahol pa, ang default na pahina database error din nagpapakita ng SQL server address at pangalan.
Can't select database Hindi maaring piliin ang 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. Namin magagawang upang kumonekta sa server database (na nangangahulugan na ang iyong username at password ay okay) ngunit hindi magagawang piliin ang localhost database.
* Are you sure it exists? * Sigurado ka ba na ito ay umiiral na?
* On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. * * * Sa ilang mga sistema ang pangalan ng iyong database ay prefixed gamit ang iyong username, kaya magiging tulad ng username_wordpress. Could that be the problem? Puwede na ang problema?If you don't know how to setup a database you should contact your host. Kung hindi mo alam kung paano mag-setup ng isang database na dapat mong kontakin ang iyong host. If all else fails you may find help at the WordPress Support Forums. Kung ang lahat ng iba pang hindi maaaring malaman mong tulong sa Suporta sa WordPress Forums.
Error establishing a database connection Error sa pagtaguyod ng isang database ng koneksyon
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. Ito ay nangangahulugan na alinman na ang username at password na impormasyon sa inyong WP-config.php file ay hindi tama o hindi kami maaaring makipag-ugnayan sa database server at localhost. This could mean your host's database server is down. Ito ay nangangahulugan na ang database ng server ang iyong hukbo ay down.
Are you sure you have the correct username and password? Sigurado ka ba na ikaw ay may tama ang username at password?
Are you sure that you have typed the correct hostname? Sigurado ka ba na ikaw ay nag-type ang tamang hostname?
Are you sure that the database server is running? Sigurado ka ba na ang mga database server ay tumatakbo?
These default Wordpress database error pages are more meant for website administrators or webmasters rather than the public visitors. Ang mga default Wordpress database error sa mga pahina ay mas sinadya para sa mga website administrator o mga webmaster sa halip na sa pampublikong mga bisita. 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. Subalit, maaari mong baguhin ang mga pahina ng error sa ibang iba't-ibang mga pahina ng error sa pamamagitan ng pagbabago o altering wordings at teksto sa pahina ng error sa pamamagitan ng pagpapasadya ng WP-db.php file na matatagpuan sa WP-isama ang direktoryo. Here's how you can hack the Wordpress default error message. Narito kung paano ka makakapag-hack ang error Wordpress default mensahe.
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)”. Sa WP-db.php (ang file na humahawak ng mga koneksyon sa database na gumagawa ng WordPress), maaari mong makita ang mga linya tulad ng "DB Taga-gawa - nagkokonekta sa server at pinipili ang isang database" at "Pumili ng isang DB (kung ang isa sa iba pang mga pangangailangan upang maging pinili ) ". That's where you can alter the text and word in the error page. Iyan ay kung saan maaari mong baguhin ang teksto at mga salita sa pahina ng error. Just look carefully after the line, you will see exactly the some text and message as appeared on the database error page. Basta tumingin maingat na matapos ang linya, makikita mo ang eksaktong ilang mga teksto at ang mensahe na lumitaw sa pahina sa database error. Edit them to your liking. I-edit ang mga ito sa iyong kagustuhan.

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”. Katabi, mula sa linya ng 312 pataas ay ang header at footer na output para sa HTML ng database pahina ng koneksyon sa error, ay naglalaman ng sa loob ng function na pinangalanang "lagak", na tumutukoy sa mga bagay-bagay na tulad ng pamagat ng "WordPress: Error". 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. Ang "lagak" function ay tinatawag na kapag ang isang database error connection ay nakaranas, at ang kung ano ang pangalan ng said - bails out ang error at nagpapakita ng isang error na mensahe sa halip na ipaalam ang mga gumagamit. You can change them if you like too. Maaari mong palitan ang mga ito kung gusto mo rin.
Please take a backup of wp-db.php file before you customize or alter it. Mangyaring maglaan ng isang backup ng WP-db.php file bago mo i-customize o baguhin ito. If you break the code, your website visitors and surfers will get the PHP error instead. Kung break sa iyo ang code, ang iyong website ng mga bisita at Surfers makakakuha ng PHP error sa halip. Beside, be careful that when you upgrade your WordPress. Katabi, maging maingat na kapag-upgrade ang iyong 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. Kung ikaw ay papatungan ang lahat ng mga file kapag mag-upgrade sa WordPress, ang WP-db.php ay papalitan ng bumalik sa orihinal na bersyon hindi magbabago rin, at kailangan mong i-edit ang mga file na muli. Else, backup the wp-db.php before upgrading your WordPress and restore it after upgrading is done. At Iba Pa, ang backup WP-db.php bago mag-upgrade ang iyong WordPress at ibalik ito matapos ang pag-upgrade ay tapos na.
IMPORTANT : The page is machine translated and provided "as is" without warranty. MAHALAGA: Ang pahina ng makina ay isinalin at ibinigay "bilang ganito" walang warranty. Machine translation may be difficult to understand. Machine pagsasalin ay maaaring mahirap maintindihan. Please refer to Mangyaring sumangguni sa original English article orihinal na Ingles na artikulo whenever possible. hangga't maaari.
Related Articles Mga Kaugnay na Akda
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page Paano Baguhin ang Dalas ng pagpapakita o pagitan WordPress Auto Makakatipid Ang Pag-edit ng Post o Pahina
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating o Split WordPress Post o pahina sa NextPage sa WordPress Hindi Paggawa
- Error Has Occurred While Establishing A Connection To SQL Server 2005 Which Does Not Allow Local and Remote Connections Error Has Nangyari Habang Itinataguyod ang isang koneksyon Upang SQL Server 2,005 Aling ba Hindi Payagan Lokal at Remote Connections
- How to Convert Character Set and Collation of WordPress Database Paano mag-convert ng mga Karakter Itakda at paghahambing ng WordPress Database
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL SQL Query Error sa WPDB Klase
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 Error Kapag export Database
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database Malikot na bata-00016 Kinakailangan ng Character set ng Conversion Not Supported Error kapag-import sa Oracle Database
- Change Oracle Database User Password Baguhin ang Oracle Database ng gumagamit Pasword
- Oracle Database Import Error 3113/3114 Oracle Database angkat Error 3113/3114
- Modify and Change Remote Desktop Listening Port Baguhin at Baguhin ang Remote Desktop Pakikinig Port










































March 21st, 2009 23:51 Marso 21, 2009 23:51
Thanks! Salamat!
You Saved Me Here! Ikaw ay nai-save Me Here!