How can I access my database from outside?

You can access your databases from outside. For this, you need the appropriate connection details and, depending on the system, authorization for external access.

Note: This article differs depending on the system (CloudPit or Controlpanel). Please use the appropriate section.

Table of Contents

Allow external database access in CloudPit

In CloudPit, external database access is disabled by default. You must enable access for the respective database user.

Log in to CloudPit and open the desired web hosting package.

Open the Databases section and click on Manage database users.

For the desired database user, click on Actions and then on Edit user.

Enable external access in the edit mask.

You can either allow external access generally or Allow custom connections.

For custom connections, you can enter specific IP addresses. Multiple IP addresses are separated by commas.

Example:

127.0.0.1, 203.0.113.10

Enter the current password of the database user so that the change can be saved.

Note: If you change the database password at this step, you must also update the new password in the associated application. Otherwise, the application will no longer be able to establish a database connection.

Save the change.

Use connection data in CloudPit

For external access, use the domain name, hostname, or IP address of the web server hosting your database as the server name.

Username and password correspond to the respective database user.

Use the appropriate port:

  • MySQL 5.7: 3306
  • MySQL 8: 3307

Use external database access in Controlpanel

In the Controlpanel, external access with the database user is enabled by default. You need the correct connection data for this.

Log in to the Controlpanel and open WebhostingData sheet.

There you will find the hostnames for external database connections.

Additionally, use the appropriate port:

  • MySQL 5: 3306
  • MySQL 8: 3307
  • PostgreSQL: 5432
Note: The hostname is specific to your web hosting. Therefore, always use the hostname from your own data sheet.