sqlectron / sqlectron-gui

A simple and lightweight SQL client desktop with cross database and platform support.
https://sqlectron.github.io/
MIT License
4.58k stars 525 forks source link

Connection Error Error invoking remote method 'DB_CONNECT': Error: connect ETIMEDOUT #671

Closed Gyde04 closed 3 years ago

Gyde04 commented 3 years ago

Tried to test mySQL connections and it gives me this error message

janyajoshi commented 3 years ago

same for me while using with amazon aws

Aryaman19 commented 3 years ago

Hey, I was also having this same issue when I tried to connect with aws rds, but the actual problem was in the inbound rules defined for the database instance. I changed my inbound rules and I got connected to the aws rds through sqlelectron.

P.S: If you cannot connect using sqlelectron, then try connecting using terminal, in my case there also I got an error that leads me to the StackOverflow and eventually to my inbound rules set for the database instance created in aws rds.

Suxrob9966 commented 3 years ago

Hey, I was also having this same issue when I tried to connect with aws rds, but the actual problem was in the inbound rules defined for the database instance. I changed my inbound rules and I got connected to the aws rds through sqlelectron.

P.S: If you cannot connect using sqlelectron, then try connecting using terminal, in my case there also I got an error that leads me to the StackOverflow and eventually to my inbound rules set for the database instance created in aws rds.

Thank you Aryaman. You helped me really much!

mohit13100 commented 3 years ago

rightly said by aryaman, if you have used default VPC do allow traffic from internet or allow all traffic from security group in aws

UpadhyeN commented 1 year ago

Hi, if you are using custom VPC. then make sure that in the route table all internet traffic is going to Internet gateway. so edit inbound rules and change the route table. image

vinothbabu commented 1 year ago

image

In your RDS -> Select your database and check if its publicity accessible.

ajesuscode commented 7 months ago

But if I want restrict to certain IP addresses that can access my RDS? Publicly accessible is not the best option , right?