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 76Updated now 2 monthsPublished 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 2132Updated now 27 daysPublished 17/07/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 137Updated now 2 monthsPublished 25/10/2018
I have purchased a hosting package and wish to transfer one/several sites to you. How should I proceed?Frequently Asked Questions General | migration | hosting | site
The migration procedure can be complex. This article gives you all the information you need.
by Mihai BobriucViews 93Updated now 1 monthsPublished 04/07/2021
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 54Published now 7 monthsPublished 29/04/2022
When accessing the site, I receive the error We're having trouble finding that site, This site can't be reached, ERR_NAME_NOT_RESOLVED. What is the cause ?Frequently Asked Questions Tehnic | error | browser | access
O eroare caAn error that can have multiple causes. If a factor presented in the article has been identified, the problem will be solved.re poate avea multiple cauze. Dacă un factor prezentat în articol a fost identificat, problema va fi rezolvată.
by Mihai BobriucViews 25Updated now 2 monthsPublished 18/08/2022