How to Customize, Modify or Change WordPress Database Connection Error Page Bagaimana Customize, Ubah atau Ubah Wordpress Database Error Koneksi Halaman
When Kapan 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. Yang terkenal blog publishing platform dibangun dalam PHP dan menggunakan MySQL database, tidak bisa menyambung atau memiliki masalah terhubung ke database (seperti ketika database yang bawah), atau server MySQL memiliki terlalu banyak koneksi melebihi maksimum koneksi diizinkan (khususnya bila Anda posting atau artikel yang telah di Digg.com dugg) dan menolak atau menyangkal sambungan baru masuk, Wordpress akan menampilkan default "Kesalahan membuat sambungan database" pesan kesalahan halaman. 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. Namun, Wordpress kesalahan halaman, beberapa ditunjukkan di bawah ini, tidak ramah pengunjung atau user friendly, dan lebih buruk lagi, standar database error halaman juga menguak SQL server nama dan alamat.
Can't select database Tidak dapat memilih basis data
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. Kami tidak dapat terhubung ke database server (yang berarti username dan password is okay) tetapi tidak dapat memilih localhost database.
* Are you sure it exists? * Apakah Anda yakin itu ada?
* On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. * Pada beberapa sistem nama database yang diawali dengan nama pengguna, sehingga akan menjadi seperti username_wordpress. Could that be the problem? 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. Jika semuanya gagal lagi Anda dapat menemukan bantuan di Wordpress Support Forum.
Error establishing a database connection Kesalahan membuat sambungan database
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. Ini berarti baik username dan password informasi dalam wp-config.php file yang salah atau kami tidak dapat menghubungi basis data di localhost. This could mean your host's database server is down. Hal ini bisa berarti host's database server bawah.
Are you sure you have the correct username and password? Apakah Anda yakin benar memiliki username dan password?
Are you sure that you have typed the correct hostname? Apakah Anda yakin bahwa Anda telah mengetik nama host yang benar?
Are you sure that the database server is running? Apakah Anda yakin bahwa database server berjalan?
These default Wordpress database error pages are more meant for website administrators or webmasters rather than the public visitors. Ini standar Wordpress database error halaman lebih dimaksudkan untuk webmaster atau administrator situs daripada masyarakat pengunjung. 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. Namun, Anda dapat mengubah kesalahan halaman lain yang berbeda untuk halaman kesalahan oleh memodifikasi atau mengubah wordings dan teks di halaman kesalahan oleh yang mengubah wp-db.php file terletak di direktori wp-include. Here's how you can hack the Wordpress default error message. Berikut ini cara hack di Wordpress standar pesan kesalahan.
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)”. Di wp-db.php (file yang menangani koneksi database yang membuat Wordpress), Anda dapat melihat baris seperti "DB Pembuat - menyambung ke server dan memilih database" dan "Pilih DB (jika lain harus dipilih ) ". That's where you can alter the text and word in the error page. Yang dimana anda dapat mengubah teks dan kata di halaman kesalahan. Just look carefully after the line, you will see exactly the some text and message as appeared on the database error page. Hanya hati-hati setelah melihat baris, Anda akan melihat sama persis dengan teks dan pesan muncul sebagai kesalahan data pada halaman. Edit them to your liking. Edit mereka yang Anda sukai.

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”. Disamping, dari 312 baris dan seterusnya adalah header dan footer output HTML untuk sambungan data dari kesalahan halaman, di dalamnya berisi fungsi bernama "jaminan", yang menentukan hal-hal seperti pada judul "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. The "jaminan" fungsi dipanggil ketika koneksi database yang dihadapi adalah kesalahan, dan apa nama kata - bails dari kesalahan dan menampilkan pesan kesalahan, bukan untuk memberitahukan pengguna. You can change them if you like too. Anda dapat mengubahnya jika Anda ingin terlalu.
Please take a backup of wp-db.php file before you customize or alter it. Silakan mengambil cadangan dari wp-db.php file sebelum Anda menyesuaikan atau merubah itu. If you break the code, your website visitors and surfers will get the PHP error instead. Jika Anda melanggar kode ini, pengunjung situs Web Anda dan akan mendapatkan Surfers PHP, bukan kesalahan. Beside, be careful that when you upgrade your WordPress. Disamping, yang berhati-hati ketika anda meng-upgrade Wordpress Anda. 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. Jika Anda menimpa semua file ketika meningkatkan Wordpress, yang wp-db.php kembali akan diganti dengan versi yang asli tidak berubah juga, dan Anda harus mengedit file lagi. Else, backup the wp-db.php before upgrading your WordPress and restore it after upgrading is done. Lain, cadangan yang wp-db.php sebelum Anda meng-upgrade Wordpress dan mengembalikannya setelah upgrade selesai.
IMPORTANT : The page is machine translated and provided "as is" without warranty. PENTING: Halaman yang diterjemahkan mesin dan diberikan "sebagaimana adanya" tanpa jaminan. Machine translation may be difficult to understand. Mesin terjemahan mungkin sulit dimengerti. Please refer to Silakan merujuk ke original English article artikel asli Inggris whenever possible. bila memungkinkan.
Related Articles Artikel Terkait
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page Cara Mengubah Frekuensi atau jarak Wordpress Auto Menyimpan An Editing Post atau Page
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Split atau Paginating Wordpress Post atau Page di Wordpress dengan Nextpage Tidak Bekerja
- Error Has Occurred While Establishing A Connection To SQL Server 2005 Which Does Not Allow Local and Remote Connections Kesalahan Telah Terjadi Saat Membuat J Sambungan Untuk SQL Server 2005 yang Tidak Mengijinkan Sambungan Lokal dan Remote
- How to Convert Character Set and Collation of WordPress Database Cara Mengkonversi Character Set dan pemeriksaan dari Wordpress Database
- WordPress MySQL SQL Query Error in WPDB Class Wordpress MySQL Query SQL Kesalahan dalam WPDB Kelas
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database IMP-00016 disyaratkan Character Set Konversi Tidak Didukung Kesalahan ketika Impor ke Database Oracle
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 Kesalahan Ketika Ekspor Database
- Change Oracle Database User Password Ubah Oracle Database User Password
- Oracle Database Import Error 3113/3114 Oracle Database Impor Kesalahan 3113/3114
- Modify and Change Remote Desktop Listening Port Ubah memodifikasi dan Remote Desktop Listening Port










































March 21st, 2009 23:51 21 Mar 2009 23:51
Thanks! Terima kasih!
You Saved Me Here! Anda Tersimpan Me Here!