question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

diffChangeLog gives error: Connection could not be created. Possibly the wrong driver for the given database URL.

See original GitHub issue

I am trying to make diffChangeLog work with postgreSQL, on the command line. You can see the command I issue and the corresponding error below. Other commands like rollback and update work like a charm. Spend several hours hunting down stack overflow cases, and this issue tracker, no luck. I will appreciate your help.

`13:06:41.661 [DEBUG] [org.gradle.api.Project] liquibase-plugin: Running 'liquibaselogLevel=info

changeLogFile=/home/spiros/java/springify-api/src/main/resources/db/changelog.yml

url=jdbc:postgresql://localhost:5432/springify

username=******

password=******

referenceUrl=hibernate:spring:com.kabasakalis.springifyapi.models? dialect=org.hibernate.dialect.PostgreSQLDialect --driver=org.postgresql.Driver

referenceDriver=org.postgresql.Driver –classpath=/home/spiros/.gradle/caches/modules-2/files-2.1/org.postgresql/postgresql/42.1.4/1c778 8d16b67d51f2f38ae99e474ece968bf715a/postgresql-42.1.4.jar

diffChangeLog’`

Gives me this error 13:06:42.555 [ERROR] [system.err] Unexpected error running Liquibase: liquibase.exception.DatabaseException: Connection could not be created to hibernate:spring:com.kabasakalis.springifyapi.models?dialect=org.hibernate.dialect.PostgreSQLDialect with driver org.postgresql.Driver. Possibly the wrong driver for the given database URL

┆Issue is synchronized with this Jira Bug by Unito

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
Vikas25commented, May 3, 2020

Can you try with reference driver referenceDriver=liquibase.ext.hibernate.database.connection.HibernateDriver instead of using postgres driver. This is working for me with SQL

1reaction
Magbethcommented, Apr 17, 2019

up

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix Possibly the wrong driver for the given database ...
But right now I am getting the following error: Failed to execute goal org.liquibase:liquibase-maven-plugin:4.6.1:diff (default-cli) on ...
Read more >
Wrong driver for the given database URL - Liquibase Forum
I run the command liquibase --changeLogFile=dbchangelog.xml generateChangeLog Then there ws a error saying “Wrong driver for the given ...
Read more >
Using Liquibase with MySQL
This page guides you through the process of creating a new Liquibase ... You can either specify the full database connection string or...
Read more >
Use Liquibase to Safely Evolve Your Database Schema
Instead of writing the changeLog file manually, we can use the Liquibase Maven plugin to generate one and save ourselves a lot of...
Read more >
[CORE-2914] Cannot find database driver: org.postgresql.Driver
I am having trouble getting liquibase to work in my environment-- it seems unable to find the postgresql jdbc driver, even when I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found