DBeaver常见问题
文章目录
can’t load driver class ‘org.postgresql.Driver’
一、报错
Can’t create driver instance
Error creating driver ‘PostgreSQL’ instance.
Most likely required jar files are missing.
You should configure jars in driver settings.
Reason: can’t load driver class ‘org.postgresql.Driver’
Error creating driver ‘PostgreSQL’ instance.
Most likely required jar files are missing.
You should configure jars in driver settings.
Reason: can’t load driver class ‘org.postgresql.Driver’
org.postgresql.Driver
org.postgresql.Driver
二、原因和解决方法
1.驱动和DBeaver版本不兼容
代码如下(示例):
Can't create driver instance
Error creating driver 'PostgreSQL' instance.
Most likely required jar files are missing.
You should configure jars in driver settings.
Reason: can't load driver class 'org.postgresql.Driver'
Error creating driver 'PostgreSQL' instance.
Most likely required jar files are missing.
You should configure jars in driver settings.
Reason: can't load driver class 'org.postgresql.Driver'
org.postgresql.Driver
org.postgresql.Driver
2.下载最新版本的Postgresql Jdbc Driver
驱动下载地址:https://jdbc.postgresql.org/download.html
然后将postgresql jdbc driver jar添加到SQL client’s driver manager,如下图所示
总结
问题解决。