Error Establishing a Database Connection

You are here:
Estimated reading time: 1 min

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:

  1. You haven’t created a database
  2. The database credentials are incorrect
  3. The Hostname is wrong
  4. Our database server is down

See the following articles to help address the above

Create a Database

Change a Database Users Password

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.

 

Was this article helpful?
Dislike 0
Views: 58