Your whole site is down. No homepage, no admin, just six words on a white screen.

This is a database fault, not a WordPress fault. WordPress itself is fine. It just cannot reach the place where your content lives.

Here is the order to check things in, from most likely to least.


What does the error actually mean?

WordPress stores all of your content, settings and users in a MySQL or MariaDB database. Every page load is a conversation between the website files and that database.

This error means the conversation could not start. Either the address was wrong, the username was wrong, the password was wrong, or the database was not accepting connections.

Nothing has been lost. Your content is still in the database. You just need to reopen the line.

The four wp-config.php values to check first

Open wp-config.php in cPanel File Manager. It sits in the root of your WordPress installation, in public_html.

Look for these four lines:

define( 'DB_NAME', 'yourdbname' );
define( 'DB_USER', 'yourdbuser' );
define( 'DB_PASSWORD', 'yourdbpassword' );
define( 'DB_HOST', 'localhost' );

Check each one against what cPanel says. In cPanel, open MySQL Databases. You will see the exact database name and the exact user name, including the account prefix.

That prefix catches people out constantly. If your cPanel account is ahsclient and you created a database called wordpress, the real name is ahsclient_wordpress. Same for the user. The short version is not the real version.

For DB_HOST, localhost is correct on almost every Australian shared hosting setup. If your plan runs the database on a separate server, the host will have given you an internal hostname instead, and changing it to localhost will cause exactly this error.

Change one value at a time and reload. If you change all four at once and it starts working, you will never know which one was wrong, and it will bite you again.

How do I check the database user has the right privileges?

This is the second most common cause and it is invisible until you look.

A database can exist. A user can exist. But unless the user has been added to that database, it cannot connect.

In cPanel:

  1. Open MySQL Databases.
  2. Scroll to Add User To Database.
  3. Select the user and the database.
  4. Click Add.
  5. Tick ALL PRIVILEGES and click Make Changes.

Then reload the site.

This is especially common after a migration. A developer exports the database, imports it at the new host, creates a matching user, and forgets the final step of granting access. The files and data are all correct, so it looks like a broken site when it is really an unclicked button.

Has the database hit its size limit?

Shared hosting plans have a database size limit, and WordPress databases grow. Post revisions, transients, plugin tables and orphaned metadata all add up over years.

If your database has reached the cap, MySQL stops accepting new writes and you get connection errors.

To check, look at Disk Usage in cPanel and see what the database is consuming against your quota. If it is at or near the limit, you have found your answer.

What to do about it:

  • Delete old post revisions. Each edit stores a full copy.
  • Clear expired transients, which are cached settings that never expire cleanly.
  • Remove deactivated plugins and their leftover tables.
  • Check the wp_options autoloaded data if it has grown unusually large.

A database cleanup plugin will handle the first two safely. Take a backup before you run it.

If the database is genuinely large because the business is genuinely large, the honest answer is a bigger plan. Our WordPress hosting plans are sized with database headroom for exactly this reason.

What if it broke during a migration?

Then the cause is almost certainly one of the two things above: the database name, or the user privileges.

Migration introduces one extra trap. Imported databases often carry their own users inside the export, and those users do not exist on the new server. The site tries to connect as a user that was never created.

Fix it by creating the user fresh at the new host, granting it all privileges on the imported database, and updating wp-config.php to match.

How do I fix it from cPanel in under ten minutes?

The checklist, in order:

  1. Open MySQL Databases in cPanel and confirm the exact name and user, including prefixes.
  2. Open wp-config.php in File Manager and compare all four values.
  3. Confirm localhost is the correct host for your plan.
  4. Open Add User To Database and grant ALL PRIVILEGES.
  5. Check Disk Usage to rule out a size limit.
  6. Check the cPanel Errors log for the actual MySQL message.
  7. If all else fails, restore the database from yesterday’s backup and find out what changed.

That last step is why backups matter. Our web hosting accounts include daily automated backups, so a bad database state is a restore, not a rebuild.

When is it the host’s problem?

Sometimes it genuinely is. If your credentials are correct, your privileges are granted, your database is not full, and the error appeared without you changing anything, the database server itself may be having trouble.

Check whether other people on your host are reporting the same thing, or simply call. A database server restart is invisible to you and instant for us.

If you are on our Sydney web hosting platform, uptime and database health are monitored, so the answer is usually already known when you call.

Frequently asked questions

Will I lose my content if I delete the database?

Yes. Everything is in the database. Never delete one as a troubleshooting step. Export it first.

Can I fix this without cPanel access?

Not really. You need database access, which means cPanel or phpMyAdmin. If you do not have it, that is the first problem to solve.

Why does the error appear on some pages but not others?

It means the connection is intermittent, which usually points to the server or a size limit rather than wrong credentials.

Does this error affect my email?

No. Email and databases are separate services, even when they are on the same hosting account.

How often should I back up the database?

Daily, kept off the server. A database backup you cannot restore is not a backup.

Site down right now?

Call Australian Hosting Solutions on (02) 9199 8787. We will find the cause and get the site back up. Every web hosting plan includes daily backups and full cPanel database access.

View hosting plans