diffChangeLog gives error: Connection could not be created. Possibly the wrong driver for the given database URL.
See original GitHub issueI 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 'liquibase –logLevel=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 Analytics
- State:
- Created 6 years ago
- Comments:5
Top GitHub Comments
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
up