Question

Unable to connect newly created PostgreSQL v15 managed DB on SGP1

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


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
November 4, 2024

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

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

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.