sumber : http://www.carazone.com/2014/04/cara-pasang-meta-tag-terbaik-super-seo.html#ixzz3lfmjnDim Follow us: @zonecara on Twitter | carazonecom on Facebook How To Fix Error Establishing Database Connection WordPress | How To FIX

How To Fix Error Establishing Database Connection WordPress

Overcoming Error Establishing Database Connection WordPress - This problem can be caused by several things. For a beginner blogger, it certainly makes frantic and frustrating, especially when this error occurs by itself without changing any settings. In this article will discuss how to overcome WordPress Error establishing a database connection with collecting some existing solutions.

Why Getting this error message?

In short, you get this error message because WordPress can not make a connection with the database. The causes vary. It could be that your database login incorrect or has changed. It could be a database server that is not responsive. It could be that your database is corrupt.

The first thing you need to do is to check whether you get an "Error establishing a database connection" in the front-end and back-end (wp-admin) of your site. If an error message occurs in both (front-end and back-end) then you need to go to the next step. If you get an error in wp-admin "One or more database tables are unavailable. The database may need to be repaired ", then you need to make improvements to the database.

You can do this by adding this command to the wp-config.php file in the root directory of your site:


define('WP_ALLOW_REPAIR', true);
 
If you've done, you can view the settings by going to this page:

 http://www.situsanda.com/wp-admin/maint/repair.php

 You will see a screen like below. 

  Keep in mind, the user does not need to log in to access this setting as define above command is added. So, when you have finished making improvements to the site's database, make sure you remove the define command earlier.

You can also do repair the database by logging into your cPanel hosting. Then go to the MySQL database and select the database to be repaired. And click commands untuh repair the database.

If the repair method above does not work, read the next couple of solutions below.

Share this:

CONVERSATION

1 comments:

  1. I cannot thank you enough for the blog article. Really looking forward to read more. Great.wordpress error establishing a database connection

    ReplyDelete