An error occurred during connection to the database

The error message “An error occurred during connection to the database” on a Loopia-hosted site usually points to a service disruption, incorrect database credentials or an incorrect database server name in your configuration. This guide walks through the most common causes and how to check each one.

Operational disturbance

First make sure there is no malfunction on your database server.

You can always check for any current disruptions or disturbances at https://www.driftbloggen.se.

There you can see if your database server (you will find all your servers in your Loopia Customer Zone) currently has a malfunction. Wait for clearance from this website and your page should work again. Please note that Loopia Support does not have more information about the malfunction than the operating blog has.

Correct username and password

Have you recently changed the password for your database user? Check your website’s connection code. In WordPress the information is in the wp-config.php file. Check that the username and password for the database match those you last saved in your Loopia Customer Zone.

Correct database server name

In your Loopia Customer Zone you will find your database server name (host or host name). For example, the server may have the name mysql525.loopia.se. In your website’s connection string it should be just mysql525.loopia.se (it also works with s525.loopia.se). If there is an incorrect server name in your code, change it and update the page.

Was this article helpful?

Related Articles