Report this

What is the reason for this report?

Unable to connect newly created PostgreSQL v15 managed DB on SGP1

Posted on October 31, 2024

Hello,

I have an issue when i tried to connect to newly created PostgreSQL managed DB from my laptop.

Several apps that i used:

  • pgAdmin4 : “Connection timeout expired”
  • psql : “failed: Connection timed out”
  • PHPStorm : “The connection attempt failed.”

I have followed the instructions from https://docs.digitalocean.com/products/databases/postgresql/how-to/connect/

but none of the apps above is connected to db.

PG Version : v15

DC : SGP1



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Did you enable trusted sources when you created the managed clusters?

If this is the case, make sure you’ve added your laptop’s IP address to the Trusted Sources section in the database settings. This allows external connections to the database.

You can get your IP by visiting this site here for example: https://ifconfig.io/

Then add your IP address to the Trusted Sources section in the database settings. And then try connecting again.

Let me know how it goes!

- Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.