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.
1
by Ana RednicViews 874Updated 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

4
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 3013Updated now 1 yearPublished 17/07/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 1018Updated now 1 yearPublished 18/08/2022
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 841Updated now 1 yearPublished 22/08/2018
My site is loading slowly. Why?Frequently Asked Questions General | site | load | speed
Find out why your website is loading slowly!
by Ana RednicViews 784Updated now 1 yearPublished 25/10/2018
When accessing the site I get 500 Internal Server Error, white page or PHP errors. How can I find out details about the problem?Frequently Asked Questions Tehnic | 500 | error | internal server
Known error 500. For many users it presents a major problem. In this article you will find all the information you need.
by Mihai BobriucViews 781Updated now 1 yearPublished 18/08/2022