Are you really messing with this error Error Establishing a Database Connection problem in WordPress site? you might be getting this. its simply means WordPress can’t connect to your site’s database.
Well, the database is the area where your site data stored. For example, your site posts data, pages data, media files, etc.
In other words, you can say that No website could run with a database if your WordPress showing this error it means its unable to connect with your database and your site is temporarily down.
In this article, you are going to get the solution of Error Establishing a Database Connection problem in WordPress.
Most of the times the problem occurs due to faulty credentials inside wp-config.php and this file hold all the login information like user name password for the database. This file is located in the root directory and checks this out if anything is not lineup make it inline and get rid of this problem.
Sometimes problem happens with your site database which needs to be fixed by WordPress.In this cause, when you go to yoursite.com/wp-admin, you will see a different type of error message. For example, your database needs to be repaired. If you are seeing this message, add the following line to wp-config.php to enable this feature: “ define(‘WP_ALLOW_REPAIR’, true); Now access http://www.yoursite.com/wp-admin/maint/repair.php,
after finishing the process removes this line wp-config.php, I’m sure problem would have been solved.
If you still getting this error after doing these possible solutions then contact to your service provider or host because the problem could be in the MySQL server and you exceed the server limit.
For more queries about How to solve Error Establishing a Database Connection problem in WordPress write us in the comment box or read our related articles GETLearners