About this Article
This article looks how how to fix the error message ‘Error Establishing a Database Connection’ after installing WordPress
What Does the Message Mean?
This means that WordPress cannot make a connection to the MySQL database. WordPress runs off MySQL so won’t work without the connection
How to Fix the Problem
There are a few reasons why this might happen:
- You haven’t created a database
- The database credentials are incorrect
- The Hostname is wrong
- Our database server is down
See the following articles to help address the above
Check Your Credentials
The database credentials are stored in the wp-config.php file in the root of your WordPress installation. You can access this file the file manager in cPanel or FTP.
Make sure the database name, user and password are all correct.
If You Moved to Us From a Different Host
We use something called a ‘One Server One Job Architecture’. Typically, the MySQL server sits on the same server as web hosting accounts. Ours is separate as we believe it delivers better performance.
When they both sit on the same server the database host is normally ‘localhost’. However, in our case you need to change this to point to the MySQL Server where your databases are held.
You can find this in your welcome email. It’s written like ‘mysql-xxx-xx.revolutioninter.net’.
Put this address in place of localhost, save the file and try again.
Still Having Trouble?
Then open a ticket and we’ll take a closer look for you.