在 AWS 中使用 liquibase 更新 MySQL 5.6.40 DD

updating MySQL 5.6.40 DD with liquibase in AWS

我刚刚在 AWS 中创建了一个数据库 MySQL 5.6.40。我可以使用 Sequel Pro 1.1.2

连接到数据库

这是我在 pom.xml 文件中的配置:

<plugin>
  <groupId>org.liquibase</groupId>
  <artifactId>liquibase-maven-plugin</artifactId>
  <version>3.5.3</version>
  <configuration>
    <changeLogFile>src/main/resources/datamodel/liquibaseChangeLog.xml</changeLogFile>
    <driver>com.mysql.jdbc.Driver</driver>
    <url>pradera.cwob2oxhu1so.eu-central-1.rds.amazonaws.com</url>
    <username>pradera</username>
    <password>AzSWMdlckdstgs0aed</password>
  </configuration>
  <executions>
    <execution>
      <phase>process-resources</phase>
      <goals>
        <goal>updateSQL</goal>
      </goals>
    </execution>
  </executions>
  <dependencies>
    <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <version>5.1.27</version>
    </dependency>
  </dependencies>
</plugin>

但是当我运行mvn clean package -DskipTests

我收到这个错误:

ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.5.3:updateSQL (default) on project icrypts: Error setting up or running Liquibase: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Connection could not be created to pradera.cwob2oxhu1so.eu-central-1.rds.amazonaws.com with driver com.mysql.jdbc.Driver. Possibly the wrong driver for the given database URL -> [Help 1] [ERROR]

pradera.cwob2oxhu1so.eu-central-1.rds.amazonaws.com 更改为 jdbc:mysql://pradera.cwob2oxhu1so.eu-central-1.rds.amazonaws.com