amazon-web-services - AWS 胶水连接到 RDS Mysql

标签 amazon-web-services amazon-rds aws-glue

我想测试从胶水到 RDS 的连接。为此,我创建了具有公共(public)访问权限和密码以及 IAM 身份验证的 RDS Mysql 实例。

我创建了一个具有 RDS、Glue(和 S3 以防万一)权限的角色:

[AmazonRDSFullAccess AmazonS3FullAccess AWSGlueServiceRole AmazonRDSDataFullAccess]

我还有一个 S3 端点已经从另一个 redshift 连接创建

安全组有glue的自引用和对外开放的3306端口(本地PC)

当我测试连接时,出现以下错误:

Check that your connection definition references your JDBC database with correct URL syntax, username, and password. Could not create connection to database server.


Exiting with error code 30

我可以从我的本地机器连接到实例:

mysql -h database-1.xxx.eu-west-1.rds.amazonaws.com -P 3306 -u admin -p

你能告诉我胶水连接缺少什么吗?

最佳答案

确保您的连接字符串格式正确,如下所示 -

jdbc:mysql://***aws_connection_url***amazonaws.com:3306/database_name

还要确保在创建粘合连接时您的 VPC 名称是包含您的数据存储的名称(与 RDS 实例相同)并且 VPC 中的子网也匹配。我已经通过胶水连接到 RDS,并且在我的安全组中我已经打开了所有 TCP 端口和安全组自引用。您可能想尝试这些步骤。

关于amazon-web-services - AWS 胶水连接到 RDS Mysql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63155410/

相关文章:

Amazon RDS 中的 MySQL 表锁定问题

amazon-web-services - AWS Glue 错误 : The specified subnet does not have enough free addresses to satisfy the request

amazon-web-services - AWS IAM |无法承担在同一 "session"上创建的角色 (InvalidInputException)

tomcat - 如何使用 Grails 关闭服务器

reactjs - Axios AWS S3 放置对象 : Error: Network Error

amazon-web-services - 在 AWS Glue 中转换其他列的数据类型时,某些列变为空

amazon-web-services - Glue Boto 客户端——NoCredentialsError

amazon-web-services - AWS 代入角色,凭证持续一个多小时

grails - Elastic Beanstalk->使用Grails的RDS连接错误

mysql - 从 Amazon RDS (MySql) 迁移到 Heroku Postgres 需要多少努力?