Skip to content
Help Center Search the help center/
Guide

Allow remote connections to your database

To reach the database from your computer or a service outside your hosting, your IP address has to be added to the database user.

About 2 minutes Updated 6 Nov 2026
Right guide?

Does your website show Error establishing a database connection? My website can’t connect to the database

Before you start

  • You need the public IP address you’ll connect from. It’s shown on ip.inleed.se .

How to allow it

  1. 1

    Log in to DirectAdmin and open Databases.

  2. 2

    Click Manage Users.

  3. 3

    Click Manage next to the database user.

  4. 4

    Enter your IP address under Allow access from and click Add Host.

How to know it worked

Done

You can connect to the database from that IP address.

Good to know

  • The website on your hosting should keep using localhost as the database server.
  • Forgotten the database user’s password? Change it under MANAGE USERS. If the website uses the same user, enter the new password in wp-config.php too.
EmilLinusMelinda

Need more help?

Email [email protected] or call 08-519 70 666.