【问题标题】:Liquibase Linux: Cannot find database driver: com.mysql.cj.jdbc.DriverLiquibase Linux:找不到数据库驱动程序:com.mysql.cj.jdbc.Driver
【发布时间】:2021-02-17 14:23:23
【问题描述】:

我在 Ubuntu 上,使用 MySQL Connector/J 8.0.22。我在 liquibase.properties 中使用以下属性:

classpath: /home/bence/.m2/repository/mysql/mysql-connector-java/8.0.22/mysql-connector-java-8.0.22.jar

driver: com.mysql.cj.jdbc.Driver

为库授予权限。全文:

运行 Liquibase 时出现意外错误:java.lang.RuntimeException: Cannot 查找数据库驱动:com.mysql.cj.jdbc.Driver

【问题讨论】:

  • 需要更多上下文。您正在运行以启动 liquibase 更新的确切命令是什么?我注意到这是您用于类路径的 maven repo 路径,那么您是直接运行 liquibase 还是通过 maven 目标运行?此外,需要完整的上下文日志,这不可能是根本错误。

标签: mysql jdbc liquibase


【解决方案1】:

尝试将其更改为:

com.mysql.jdbc.Driver

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-02-23
    • 2017-11-28
    • 2021-10-25
    • 1970-01-01
    • 2013-01-08
    • 1970-01-01
    • 2021-10-05
    • 1970-01-01
    相关资源
    最近更新 更多