WP : Error establishing a database connection, Kenapa?

WP Error establishing a database connection, Kenapa
WP Error establishing a database connection, Kenapa

Error establishing a database connection bisa bermacam-macam sebabnya salah satunya memang database yang sedang bermasalah. Error establishing a database connection adalah pesan error yang muncul saat WordPress tidak dapat terhubung ke database. Hal ini bisa terjadi karena beberapa hal, seperti:

  1. Kredensial database salah. Pastikan bahwa Anda memasukkan nama pengguna dan kata sandi database yang benar pada file wp-config.php.
  2. Database server tidak bisa diakses. Pastikan bahwa server database sedang berjalan dan dapat diakses dari server web.
  3. File database rusak. Coba periksa kembali file database untuk memastikan tidak ada yang rusak atau hilang.
  4. Konflik plugin. Coba nonaktifkan semua plugin untuk mengetahui apakah salah satu plugin yang menyebabkan kesalahan ini.

Sebagai tambahan, pastikan juga bahwa server web sedang berjalan dengan baik dan dapat diakses oleh browser. Jika masalah ini terus muncul, cobalah untuk menghubungi penyedia hosting Anda atau admin sistem untuk mendapatkan bantuan lebih lanjut.

Berikut contoh kasus Error establishing a database connection.

Warning: Error while sending QUERY packet. PID=18811 in /home/quanacom/public_html/wp-includes/wp-db.php on line 2169

Warning: Cannot modify header information - headers already sent by (output started at /home/quanacom/public_html/wp-includes/wp-db.php:2169) in /home/quanacom/public_html/wp-includes/pluggable.php on line 1416

Warning: Cannot modify header information - headers already sent by (output started at /home/quanacom/public_html/wp-includes/wp-db.php:2169) in /home/quanacom/public_html/wp-includes/pluggable.php on line 1419

Kode Error lagi coba akses ke Login admin : akses ke alamat web/wp-admin/

Warning: Error while sending QUERY packet. PID=21760 in /home/quanacom/public_html/wp-includes/wp-db.php on line 2169

Warning: Error while sending QUERY packet. PID=21760 in /home/quanacom/public_html/wp-includes/wp-db.php on line 2169

Warning: Error while sending QUERY packet. PID=21760 in /home/quanacom/public_html/wp-includes/wp-db.php on line 2169

Warning: Error while sending QUERY packet. PID=21760 in /home/quanacom/public_html/wp-includes/wp-db.php on line 2169

Warning: mysqli_query(): MySQL server has gone away in /home/quanacom/public_html/wp-includes/wp-db.php on line 2169

Warning: mysqli_query(): Error reading result set's header in /home/quanacom/public_html/wp-includes/wp-db.php on line 2169

Warning: Error while sending QUERY packet. PID=21760 in /home/quanacom/public_html/wp-includes/wp-db.php on line 2169

Warning: mysqli_query(): MySQL server has gone away in /home/quanacom/public_html/wp-includes/wp-db.php on line 2169

Warning: mysqli_query(): Error reading result set's header in /home/quanacom/public_html/wp-includes/wp-db.php on line 2169

Warning: mysqli_query(): MySQL server has gone away in /home/quanacom/public_html/wp-includes/wp-db.php on line 2169

Warning: mysqli_query(): Error reading result set's header in /home/quanacom/public_html/wp-includes/wp-db.php on line 2169

Warning: Cannot modify header information - headers already sent by (output started at /home/quanacom/public_html/wp-includes/wp-db.php:2169) in /home/quanacom/public_html/wp-includes/pluggable.php on line 1416

Warning: Cannot modify header information - headers already sent by (output started at /home/quanacom/public_html/wp-includes/wp-db.php:2169) in /home/quanacom/public_html/wp-includes/pluggable.php on line 1419

Warning: Error while sending QUERY packet. PID=21760 in /home/quanacom/public_html/wp-includes/wp-db.php on line 2169

Coba Akses web haalaman depan ada error ini

Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or that contact with the database server at localhost could not be established. This could mean your host’s database server is down.

Are you sure you have the correct username and password?
Are you sure you have typed the correct hostname?
Are you sure the database server is running?
If you are unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

Cek lewat CPANEL (database)

Sama saja juga ada error

 MySQL® Databases
The MySQL server is currently offline.
Error while connecting to MySQL: (XID p3nqy8) The system failed to connect to the “MySQL” database “mysql” because of an error: CR_CONNECTION_ERROR (Can't connect to local MySQL server through socket '/sesu1123/tembelek/mysql.sock' (111)) Error while connecting to MySQL: (XID p3nqy8) The system failed to connect to the “MySQL” database “mysql” because of an error: CR_CONNECTION_ERROR (Can't connect to local MySQL server through socket '/sesu1123/tembelek/mysql.sock' (111)) at /usr/local/cpanel/Cpanel/Mysql/Basic.pm line 391, <STDIN> line 1.

Tanya ke Live Support web

Bisa bantu nama webnya mas?
Saya : https://nama web saya .com

11:59:43 account_box_sedan : Saat ini masih ada maintenance pada server yang digunakan website namadomainkamu .com Mohon maaf atas ketidaknyamanannya

Saya : baik, kami tunggu updatenya
12:00:12 account_box_sedan Baik mas, Sementara jika tidak ada lagi yang ingin ditanyakan, maka kami close terlebih dahulu chat nya ya mas. Namun apabila ada pertanyaan lanjutan, jangan ragu untuk menghubungi kami kembali melalui live chat. 🙏Salam,

1 Comment

  1. Kadang ngalamin gitu juga mas. solusi terbaik, nanya langsung ke tim support hosting.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.