Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HeidiSQL freezes if it cannot connect to the database #1306

Closed
elieobeid7 opened this issue Feb 7, 2021 · 4 comments
Closed

HeidiSQL freezes if it cannot connect to the database #1306

elieobeid7 opened this issue Feb 7, 2021 · 4 comments

Comments

@elieobeid7
Copy link

I'm on Windows 10, 64 bit latest update, using HeidiSQL latest version (just downloaded it today).

I'm trying to connect to AWS rds database, I must be behind a VPN to do that, if I am, everything is fine.

If I forget to turn on the VPN and I try to connect, HeidiSQL won't be able to connect to the server and it freezes, nothing works, I have to wait for windows 10 to kill it or kill it myself using the task manager. It would be nice if this scenario could be handled in a better way.

@ansgarbecker
Copy link
Collaborator

Was there a reason why you deleted the issue template?

Are you sure you gave HeidiSQL 30s or 60s to return with an error?

@elieobeid7
Copy link
Author

I gave HeidiSQL at the very least 4 minutes and it kept loading and trying to connect, just did that right now before posting this reply.

I deleted the template because all I wanted to do is to write those two sentences and leave,

ansgarbecker added a commit that referenced this issue Feb 7, 2021
@ansgarbecker
Copy link
Collaborator

ansgarbecker commented Feb 7, 2021

Assuming your AWS rds is a MySQL database, and further assuming you get some physical connection to it, despite of the missing VPN, you could look up the connect_timeout variable (once you have a connection):

SELECT @@connect_timeout;

But I'm unsure if that's relevant here, and if you hit the host at all due to the missing VPN.

So what I just did was to enably the "Query timeout" setting for MySQL/MariaDB mode:
grafik
... and use that setting for the MYSQL_OPT_CONNECT_TIMEOUT option.
The next HeidiSQL build has this code, so you should give it a try. (* in half an hour, just use Help > Check for updates)

Apart from that I just found the advice to create a VPC security group in AWS, but I know nothing about that, so this might be irrelevant: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.RDSSecurityGroups.html

@elieobeid7
Copy link
Author

I Will try that, thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants