【问题标题】:Unable to connect to AWS RDS using Liquibase on Mac无法在 Mac 上使用 Liquibase 连接到 AWS RDS
【发布时间】:2021-09-03 07:11:22
【问题描述】:

我无法使用 Mac 从终端使用 liquibase 连接到 AWS RDS 实例。我可以在 python 中使用 MySQL 工作台和 pymysql 连接到相同的数据库和 URL。我在 Liquibase 的 lib 文件夹中有 mysql-connector-java.jar。我也做过brew install mysqlbrew install mysql-client。使用无效 URL 时出现相同的错误,但我已检查(多次)以确保 URL 字符串正确。我得到的确切错误是:

运行 Liquibase 时出现意外错误:liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Connection could not be created to jdbc:mysql://-URL IS HERE-?createDatabaseIfNotExists=true with driver com.mysql.cj.jdbc 。司机。通讯链路故障

来自命令:

liquibase --url=jdbc:mysql://-URL IS HERE-:3306/cdp_sms?createDatabaseIfNotExists=true  --username="cdpadmin" --password=$CDP_DB_PW --changeLogFile=db.changelog-master.xml update

任何帮助将不胜感激。

【问题讨论】:

    标签: sql macos liquibase


    【解决方案1】:

    不久前我在使用 Liquibase 和 AWS RDS 时遇到过类似的问题。我建议您在 aws 设置中检查您的安全组(入站/出站规则)。

    【讨论】:

      猜你喜欢
      • 2021-06-24
      • 2020-12-20
      • 2021-06-10
      • 1970-01-01
      • 1970-01-01
      • 2021-04-02
      • 1970-01-01
      • 2016-12-13
      • 2017-12-13
      相关资源
      最近更新 更多