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.
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
Log in to DirectAdmin and open Databases.
- 2
Click Manage Users.
- 3
Click Manage next to the database user.
- 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
localhostas 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.phptoo.
Related guides
Need more help?
Email [email protected] or call 08-519 70 666.