Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29243

Not able to connect to Amazon RDS from EC2 Django Instance

$
0
0

I was deploying my Django Project on AWS (this is my first time doing this) after a lot of first time learning i got stuck at an error :

django.db.utils.OperationalError: (2005, "Unknown MySQL server host '****.*****.us-east-2.rds.amazonaws.com' (0)")

When i tried migrating my Django Project.I tried multiple solutions but none worked. I tried command mysql -u username -p password -h ****.********.us-east-2.rds.amazonaws.com but this also returned and error.

ERROR 2005 (HY000): Unknown MySQL server host '*****.*********.us-east-2.rds.amazonaws.com' (2)

UPDATE 2: I Tried using command on AWS Documentation mysql -h mysql–instance1.123456789012.us-east-1.rds.amazonaws.com -P 3306 -u mymasteruser -p which have -h before using -u and -p and an input for Port this changed the error which seems like now the connection is not not able to reach the server which seems a reasonable and a better error than before.

ERROR 2003 (HY000): Can't connect to MySQL server on '******.******l2la.us-east-2.rds.amazonaws.com' (10060)

I read in question this about this,they are talking about binding the instance to an IP.How can i do that if that could be the problem?

UPDATE1:Screenshots:FIRST RDS INFORMATIONRDS SS 1RDS SS 2

EC2 instance InformationEC2 SS 1EC2 SS 2

SGs information

launch Wizard SGIf you require any log or information please feel free to ask in the comments.Thanks


Viewing all articles
Browse latest Browse all 29243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>