- Le plus récent
- Le plus de votes
- La plupart des commentaires
A timeout issue in AWS is generally a network problem. A few of things that we can check.
- Have you associated the default security group with the mysql server ?
- What is the CIDR that you have added in the security group inbound rule ? It is supposed to be your ip address or 0.0.0.0/0.
- Have you enabled public accessibility on your server ? It is necessary for the server to have a public ip to be reachable from your local. You can use the
dig
command to get the ip of the endpoint and verify it is a public address. - If all the above points have been checked and it still doesn't work, the route table associated with the database subnets need to be checked. They should have a route for all traffic going towards 0.0.0.0/0
There is a lot of excellent troubleshooting documentation on AWS on the database connection failures. It pretty much covers the points that Sagar made. None of it, to my knowledge, mentions the VM or server that belongs to your EC2 instance. Once I opened the 1433 port on the server, the problem was solved. The resolution for my laptop, which I mentioned in the question, was more complex: there were adjustments required that I assume AWS takes care of under the covers.
Sorry, my above comment was wrong. The EC2 instance had nothing to do with the database or access to it, in fact I've dropped the instance. When I opened up 1433 on the instance I could then access the database but when I dropped the instance I can still access the db. No idea what was going on, since I had taken all the recommended steps for access. So I am marking your answer as Accepted.
Contenus pertinents
- demandé il y a un mois
- demandé il y a un an
- demandé il y a 8 mois
- AWS OFFICIELA mis à jour il y a 4 ans
- AWS OFFICIELA mis à jour il y a 4 ans
- AWS OFFICIELA mis à jour il y a 2 ans
Thank you Sagar for your quick and careful answer. I've checked and double-checked all the points you brought up. I'm thinking the problem may be on my side rather than Amazon's: the communication is being blocked at my laptop - even though I've configured the McAfee firewall to enable traffic through port 1433. When I try to connect from my laptop to my own SQL instance, remotely (i.e., specifying <MyComputerName>,1433), I get the same error. I'm at a loss what to do since configuring my firewall does not seem to work. Any thoughts would be welcome!