I have created an Amazon EC2 instance and an Amazon RDS DB(MySQL) instance that both run in Amazon Virtual Private Cloud. I was looking to connect these instances using Python, but I have never connected an RDS before.
Does anyone have experience doing this that could assist?
Connecting to RDS is no different than connecting to a standard MySQL instance. This answer should help - How do I connect to a MySQL Database in Python?
Also, routing and networking might be a limiting factor to establishing a connecting. You will need a public IP on the instance or be able to route to the private IP space.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.