DigitalOcean connection guide

Connect a Postgres or MySQL database hosted on DigitalOcean

Ben McRedmond avatar
Written by Ben McRedmond
Updated over a week ago

DigitalOcean supports both Postgres and MySQL database types. The instructions for each type are the same. If your database is clustered, you will need to find the specific instance within the cluster you want to connect to.

Finding the database in DigitalOcean

  1. First ensure you are on the correct project in the top right of the DigitalOcean dashboard.

  2. Click “Databases” in the left hand sidebar.

  3. Choose the database you want to connect to from the list. If the database has follower nodes, choose the specific node you want to connect to from the list.

Finding connection details

  1. Find the database in DigitalOcean (instructions in first section above).

  2. On the database details page, find “Connection details” on the right.

  3. Ensure you have “Public network” selected and then choose “Connection string” in the dropdown on the right.

  4. Ensure the correct user and database is selected below, and then click “show-password” in the connection string.

  5. Within Equals click “Use connection string instead” and paste the connection string from DigitalOcean.

Allowing access from our IP

You likely need to allow incoming connections from Equals’ IP address.

  1. Find the database in DigitalOcean (instructions in first section above).

  2. Select “Settings” in the tab bar at the top of the page.

  3. Under “Trusted sources” click “Edit”.

  4. Paste Equals' IP address in the text field: 54.68.61.53.

  5. Select ‘Add “54.68.61.53” as an address’ from the dropdown.

  6. Click “Save”. Equals should now have access to your database.

Did this answer your question?