Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connect render db to pgAdmin

I'm trying to connect my db from render to pgAdmin, but it always give me this timeout error

I tried this guide and this other guide, but I got the same result

like image 781
Tortuga Avatar asked Jul 17 '26 05:07

Tortuga


2 Answers

I was able to fix the issue and successfully connect my pgAdmin to my database, which is hosted by Render. (This statement is different than or opposite of your statement "connecting my db from render to pgAdmin").

Anyway, the issue seems to be 'Host name/address' under Connection tab in PgAdmin. Go to Render.com -> Dashboard -> Choose your Postgres database -> Info -> Scroll down to External Database URL (Ignore Hostname).

External Database URL should be something like this

postgres://something_postgres_user:[email protected]/something_postgres

Now, copy only the following portion and paste it to 'Host name/address' under Connection tab in PgAdmin:

postgres://something_postgres_user:SOME_RANDOM_PASSWORD@SOMEHOSTNAME.oregon-postgres.render.com/something_postgres

like image 190
beepboopbop Avatar answered Jul 19 '26 20:07

beepboopbop


This worked for me:

From the full External Database URL: postgres://your_postgres_user:your_password@your_host_name.your_region-postgres.render.com/your_db_name

Grab this portion: postgres://@your_host_name.your_region-postgres.render.com

and put into the "Host name/address" field

Fill out "Maintenance database" with your database name

Fill out "Username" with username

like image 29
Meursault Avatar answered Jul 19 '26 20:07

Meursault



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!