Error Establishing a Database Connection
If you experience any of these server issues, you should give your hosting company the boot! Staq has self-healing technology that "heals" both PHP and NGINX issues.
The Issue
The ‘Error establishing a database connection’ issue can be caused by incorrect database information in your WordPress settings, corrupt database, or an irresponsive database server.
WordPress needs the following information for connecting to the database:
– Database name
– Database username
– Database password
– Database server
This information is stored in your WordPress configuration file called wp-config.php.
If any of these items are incorrect, WordPress would fail to connect to your database server, and you’ll see the ‘Error establishing a database connection’ error.
It is one of the most common WordPress errors. Apart from incorrect credentials, this error can also appear if the database server is down, or the database files are corrupt.
The Staq Solution
Staq’s self healing technology automatically picks up these issues and attempts to rectify the issue.
You will also be able to see the message in our Debug tool – this is helpful if the issue is out of Staq’s control, as you can send this to your IT/Web Developer.
You might be interested in these