【发布时间】:2021-09-03 07:11:22
【问题描述】:
我无法使用 Mac 从终端使用 liquibase 连接到 AWS RDS 实例。我可以在 python 中使用 MySQL 工作台和 pymysql 连接到相同的数据库和 URL。我在 Liquibase 的 lib 文件夹中有 mysql-connector-java.jar。我也做过brew install mysql 和brew 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
任何帮助将不胜感激。
【问题讨论】: