Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

I have just created a DB MySQL 5.6.40 in AWS. I can connect to the DB using Sequel Pro 1.1.2

This is my configuration in the pom.xml file: 

<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>

but when I run mvn clean package -DskipTests

I got this error: 

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]

1 Answer

0 votes
by (44.4k points)

change this:

pradera.cwob2oxhu1so.eu-central-1.rds.amazonaws.com

for this:

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

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

Browse Categories

...