简体   繁体   English

无法连接到MySQL的Aws rds实例

[英]Not able to connect to Aws rds instance for MySQL

I am new to amazon cloud. 我是亚马逊云的新手。 I have gone through different posts in Stack Overflow but couldn't understand what is the problem exactly. 我在Stack Overflow中浏览了不同的文章,但无法确切地了解问题所在。 I created my SQL db instance and status is available. 我创建了我的SQL数据库实例,并且状态可用。 Assigned security group. 分配的安全组。 Inbound port number is 3306.when I am doing telnet portnumber in commnad line, it is showing "connection to host lost" immediately. 入站端口号是3306。当我在commnad行中执行telnet端口号时,它立即显示“与主机的连接丢失”。

I am trying to connect to rds using MySQL workbench. 我正在尝试使用MySQL工作台连接到rds。 I want to create db, table and insert some data. 我想创建数据库,表并插入一些数据。

Can somebody 可以有人吗

By default an RDS instance is only accessible from within your VPC. 默认情况下,只能从VPC内访问RDS实例。 If you want to access it from outside your VPC you need to enable the "Publicly Accessible" flag on the RDS instance. 如果要从VPC外部访问它,则需要在RDS实例上启用“公共可访问”标志。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM