Categories
Mastering Development System & Network

Can’t connect to Amazon RDS MySQL

I’m trying to connect to RDS MySQL from linux machine. When I test the connection with telnet, the telnet session succeeds but when I’m trying to connect to the db with the next command

mysql -h hostname -uusername -ppassword

I can’t get access and the command gets stuck.
In the RDS configuration the public accessibility is set to yes, and I added an inbound rule in the security group allowing access from all addresses.

I’m assuming that when this problem will be solved, I will be able to connect via jdbc that also doesn’t work right now.

Thanks to the helpers!

update: attaching the outputs of the commands I ran:

Leave a Reply

Your email address will not be published. Required fields are marked *