java - Liquibase Windows MySQL-找不到数据库驱动程序: com. mysql.cj.jdbc.Driver

标签 java mysql windows powershell liquibase

我正在Powershell中运行以下命令,以在CircleCI上获取它,但看到错误:找不到数据库驱动程序:com.mysql.cj.jdbc.Driver
./liquibase.bat --driver=com.mysql.cj.jdbc.Driver--classpath = E:\Software\liquibase-3.10.2\lib\mysql-connector-java-5.1.48.jar --url="jdbc:mysql://REDACTED:3306/sandbox"--changeLogFile =/db.changelog-1.0.mysql.sql --username=REDACTED--password =已删除`
generateChangeLog
我已经检查了mysql-connector文件的类路径是否正确/运行了一个文件并且该文件为True

[System.IO.File]::Exists('E:\Software\liquibase-3.10.2\lib\mysql-connector-java-5.1.48.jar')
检查以下命令的输出后,PATH变量具有Liquibase根文件夹:
$env:PATH
任何指针将不胜感激
谢谢

最佳答案

将驱动程序更改为

--driver=com.mysql.jdbc.Driver
或更新您的mysql依赖项。我相信您的依赖项具有com.mysql.jdbc软件包,但mysql updated具有新软件包的库。
例如,尝试使用this one

关于java - Liquibase Windows MySQL-找不到数据库驱动程序: com. mysql.cj.jdbc.Driver,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63830696/

相关文章:

java - 无法从 maven 插件中的 jar 中找到类

使用 PEM 文件的 Java SSL SOAP 客户端

mysql2 gem 为错误的 mysql 客户端库编译

php - MySql COALESCE 不工作

c - Detecting if stdout is a console with MS Visual compilation, mingw64提供的console

windows - F# 使用 WinForms 拖放 : DragDrop event of a control does not call the referenced member function

c++ - 如何与 PlaySound 同时执行其他功能?

java - 用java编写 Parquet

java - 将字符串子集转换为数组变量的最佳方法是什么?

php - 为什么我会返回重复的结果?