DBeaver报错:can‘t load driver class ‘com.mysql.cj.jdbc.Driver‘
Posted zhangphil
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DBeaver报错:can‘t load driver class ‘com.mysql.cj.jdbc.Driver‘相关的知识,希望对你有一定的参考价值。
DBeaver报错:can't load driver class 'com.mysql.cj.jdbc.Driver'
如图:
Can't create driver instance
Error creating driver 'mysql' instance.
Most likely required jar files are missing.
You should configure jars in driver settings.Reason: can't load driver class 'com.mysql.cj.jdbc.Driver'
Error creating driver 'MySQL' instance.
Most likely required jar files are missing.
You should configure jars in driver settings.Reason: can't load driver class 'com.mysql.cj.jdbc.Driver'
com.mysql.cj.jdbc.Driver
com.mysql.cj.jdbc.Driver
原因是缺少对应的连接器,下载:
MySQL :: Download MySQL Connector/J (Archived Versions)https://downloads.mysql.com/archives/c-j/选择Platform Independent (Architecture Independent), ZIP Archive。
下载解压后,找到里面的mysql-connector-java-8.0.29.jar文件,然后,
数据库 - 驱动器管理
选择 MySql - 编辑 - 库 - 添加文件,
把mysql-connector-java-8.0.29.jar添加进去即可。
一种在mmysql版本8+登录进去修改用户密码的方式:
mysql> SET PASSWORD FOR 'root'@'localhost' = '123456';
123456是新密码,对root用户修改。这种修改密码的方式比较适合mysql密码字符串
中包含有特殊字符比如 $&之类。
以上是关于DBeaver报错:can‘t load driver class ‘com.mysql.cj.jdbc.Driver‘的主要内容,如果未能解决你的问题,请参考以下文章
dbeaver can't connect HBase1.2 using phoenix driver #1863
Exception: No Windows desktop project configured. 或者Can‘t load AOT data的Flutter运行报错处理
Exception: No Windows desktop project configured. 或者Can‘t load AOT data的Flutter运行报错处理
Tomcat之启动报错Can't load IA 32-bit .dll on a AMD 64-bit platform
使用Linux调用资源库中的Job报错-ERROR: No repository provided, can't load job.
DBeaver连接Oracle Express Edition报错:1driver instance,2Listener refused the connection:ORA-12514