AWS RDS MySql-设置``公开可用''后如何允许访问 [英] AWS RDS MySql - how to allow access after setting 'Publicly available'

查看:648
本文介绍了AWS RDS MySql-设置``公开可用''后如何允许访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只需使用默认设置和用户/密码创建新的AWS RDS MySql实例.

Just created new AWS RDS MySql instance with default settings and user/pass.

我还将其设置为publicly available,并在此过程中创建一个新的VPC.

Also I set it to be publicly available and to create a new VPC during the process.

当前无法从笔记本电脑连接到此RDS:
mysql -h endpoint -u myusername -p

Currently can not connect from my laptop to this RDS:
mysql -h endpoint -u myusername -p

错误:

ERROR 2003 (HY000): Can't connect to MySQL server on 'endpoint' (60)

如何允许通过例如我的笔记本电脑和其他计算机?如果通过某些安全组-到底要在哪里更改并与新的RDS实例通过控制台关联?

How to allow access to it from e.g. my laptop and other computers? If is trough some security groups - where exactly to change and associate with new RDS instance trough console?

谢谢.

推荐答案

在实例页面的监视图下方,是一个connect块,其中包含安全组列表.

On the instance page, just under the monitoring graphs there is a connect block with a list of security groups.

应该有1个类型为security group - inbound

在该安全组的页面上,您应该在底部具有一个inbound标签.

On that security group's page you should have an inbound tab at the bottom.

单击Edit,然后为当前IP添加新规则.确保端口正确.

Click on Edit et add a new rule for your current IP. Make sure the port is correct.

现在您应该可以连接mysql -h [ENDPOINT] -P [PORT] -u [USERNAME] -p

如果您是代理人,这可能仍然会失败.您将不得不通过自己的方式进入隧道或使用共享的wifi连接.

If you are behind a proxy this may still fail. You'll have to tunnel your way in or used a shared wifi connection.

这篇关于AWS RDS MySql-设置``公开可用''后如何允许访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆