在AWS中使用liquibase更新MySQL 5.6.40 DD

我刚在AWS中创建了一个DB 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 for jdbc:mysql://pradera.cwob2oxhu1so.eu-central-1.rds.amazonaws.com

转载注明原文:在AWS中使用liquibase更新MySQL 5.6.40 DD - 代码日志