Question

Can not connect to database with psql

Posted December 15, 2019 326 views
DigitalOcean Managed PostgreSQL Database

Trying to connect to database with flags, my ip exist in trusted sources, but anyway get this error

psql: could not connect to server: Operation timed out
    Is the server running on host "___________.ondigitalocean.com" (46.101.___.___) and accepting
    TCP/IP connections on port 25061?

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.

×
1 answer

Hi @fitumapp,

Can you please try and follow this tutorial -

https://www.digitalocean.com/community/tutorials/how-to-connect-to-managed-database-ubuntu-18-04#connecting-to-a-managed-mysql-database

It should show you how to perform the task you are aiming to do.

Regards,
KDSys

by Mark Drake
If you're new to working with managed databases, the best way to perform certain tasks, like connecting to the database, may not be self-evident. In this guide, we will go over how to install client programs for a variety of database management systems, including PostgreSQL, MySQL, and Redis, on an Ubuntu 18.04 server. We'll also explain how to use these programs to connect to a managed database instance.
Submit an Answer