mysql - AWS RDS Mysql 社区 - 春季启动
问题描述
有没有人将本地运行的 Spring Boot 应用程序连接到 AWS RDS Mysql 社区(免费层)版本。我已经通过指定尝试了通常的方法:
spring:
datasource:
url: jdbc:mysql://<endpoint as shown on the amazon DB details page.amazonaws.com>:3306
username: <user>
password: <password>
initialization-mode: always
这会在春季引发异常
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
我已经在 POM 中包含了 mysql 驱动程序
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
任何人有任何线索?哦,是的,我在 aws 上为数据库实例选择了“允许访问公共”,还添加了一个选择 http-custom-anywhere 的安全配置文件
解决方案
推荐阅读
- aeron - Aeron 发布突然停止消息传输
- r - 如何合并R中的重复行?
- confluence - 如何创建一个可共享的链接,将同事引导到 Confluence 页面的特定部分?
- android - AlarmManager:未设置/触发新警报
- amazon-web-services - AWS 分区 Hudi
- node.js - 如何从订阅表中获取最新的一条记录以及来自用户表中的所有记录,并在 sequelize 和 PostgreSQL 中使用左连接
- iframe - 在 MS Teams 会议阶段应用程序中使用 MediaRecorder
- python - 有没有办法使用 python 在 Twitter 上自动发布视频?
- python - 尝试使用 PyQt 创建 QScrollArea 时不出现滚动条
- android - 找不到 Andriod studio 设备管理器