EC2实例/实时Web可以很好地连接到RDS数据库.但是,当我想在本地计算机上调试代码时,我无法连接到数据库并收到此错误:
The EC2 instance/live web can connect just fine to the RDS database. But when I want to debug the code in my local machine, I can't connect to the database and got this error:
OperationalError:(2003年,无法连接到'aa9jliuygesv4w.c03i1上的MySQL服务器 ck3o0us.us-east-1.rds.amazonaws'(10060))
OperationalError: (2003, "Can't connect to MySQL server on 'aa9jliuygesv4w.c03i1 ck3o0us.us-east-1.rds.amazonaws' (10060)")
我已将.pem和.ppk键添加到.ssh,并且已经配置了EB CLI.我不知道该怎么办.
I've added .pem and .ppk keys to .ssh and I already configure EB CLI. I don't know what should I do anymore.
仅供参考:该应用程序在Django中
FYI: The app is in Django
推荐答案事实证明,这并不难.请执行以下步骤:
It turns out it is not that hard. Do these steps:
更多推荐
AWS:无法从我的机器连接到RDS数据库
发布评论