When I acces my WordPress site I get the error: Error establishing a database connection. What can I do ?

Frequently Asked Questions Applications | wordpress | database | error
Discover why when accessing your WordPress site you get the error: Error establishing a database connection, and what should you do in this sittuation.
by Ana RednicViews 535Updated now 1 yearPublished 25/10/2018

This error message tells us that the WordPress application cannot connect to the database server. This error may have multiple causes.

The most common cause is the wrong login data in the wp-config.php file. For resolving, we will make sure that the data in the following fields are correct:

define('DB_NAME', 'Database name');
define('DB_USER', 'Database user');
define('DB_PASSWORD', 'User password');
define('DB_HOST', 'localhost');

This data must be the same as those set in the control panel.

Another cause of this error message is the depletion of the resources allocated to the hosting package. To resolve this, you will need to optimize your WordPress application and/or think about a higher hosting package.



Similar Articles

What is the difference between Hosting, Domain and Website?Frequently Asked Questions General | domain | hosting | nameservers | website
Three different but related elements. There is often a confusion, so it is important to know the difference between them, in order to be able to carry out the online activity as efficiently as possible.
by Mihai BobriucViews 2659Updated now 1 yearPublished 17/07/2018
I paid for the transfer of a domain, why is the status 'pending'?Frequently Asked Questions Domains | domain | transfer | period
Find out if transferring a domain is an instant procedure.
by Mihai BobriucViews 640Updated now 1 yearPublished 22/08/2018
How can we solve the white page error when accessing the Prestashop administration?Frequently Asked Questions Applications | prestashop | white screen | white page
In this article we will explain how you can solve the white page error when accessing the Prestashop administration
by Mihai BobriucViews 616Updated now 1 yearPublished 18/08/2022
My site is loading slowly. Why?Frequently Asked Questions General | site | load | speed
Find out why your website is loading slowly!
by Ana RednicViews 563Updated now 1 yearPublished 25/10/2018
What's the difference between traditional and cloud hosting services?Frequently Asked Questions Technical | cloud | hosting | host | vps
Traditional Hosting Services vs. Cloud Hosting
by Mark DohiViews 496Published now 1 yearPublished 29/04/2022