金仓kingbase连接报错The authentication type 10 is not supported. Check that you have configured the sys_hba.conf file to include the client's IP address or subnet
原文链接: https://developer.aliyun.com/article/976306
https://blog.csdn.net/weixin_44480167/article/details/120987851
The authentication type 10 is not supported. Check that you have configured the sys_hba.conf file to include the client's IP address or subnet, and that it is using an authentication scheme supported by the driver.
原因: Kingbase
驱动的版本与服务版本不一致!!数据库服务用的是 8.6.0
,但是用的驱动是 8.2.0
。
人大金仓驱动包kingbasejdbc8.6.0.jar V8驱动jar包
工作上要将kingbaseV8数据库整合到项目,我在官网找了半天,连个jdbc驱动包下载入口都找不到,简直就是官方文档毫无诚意。emm…套着postgreSQL的国产数据库,我差点用postgreSQL的jdbc来代替驱动包。因此我直接在安装数据库的服务器执行find -name *.jar
将jdbc驱动包下载来,不用什么积分下载,我已经分享到阿里云盘:
https://www.aliyundrive.com/s/Yf5UGQ6Tmdj
需要的同学自行下载 (ES V8版本)
driver-class-name: com.kingbase8.Driver
url: jdbc:kingbase8://10.8.4.66:54321/template1?characterEncoding=utf8
username: system
password: 123456
# hibernate的方言改为
dialect: org.hibernate.dialect.PostgreSQL82Dialect
1
2
3
4
5
6
7
<dependency>
<groupId>com.kingbase8.jdbc</groupId>
<artifactId>kingbase8</artifactId>
<version>8.6.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/resources/jar/kingbase8-8.6.0.jar</systemPath>
</dependency>
在kingbase的SQL语句的书写表名上要使用模式名.表名,否则会报错误500,找不到字段
相关文章
- 获取当前局域网下所有连接设备的ip地址和mac地址
- 公网SSH远程连接Ubuntu系统【无公网IP】
- 计算机网络安全基础知识1:渗透测试,网络连接的核心TCP/IP体系结构,公网,内网,ip地址和端口
- win10连接打印机共享显示0x0000011b错误代码怎么办?
- Activemq的连接方式
- BeagleBone Black教程之BeagleBone Black设备的连接
- VMware Nat 连接固定ip
- Android应用程序窗口(Activity)与WindowManagerService服务的连接过程分析
- 将Windows网络适配器共享网络的ip:192.168.137.1 改为其他IP
- 远程连接阿里云服务器ping不通ip解决方案
- power designer 连接数据库提示“connection test failed”
- Java_jdbc 基础笔记之一 数据库连接
- Oracle 12.2 的连接消除特性
- win7系统 无线路由关闭了ssid广播 我手动设置了SSID和密码仍然连接不上
- 怎样在nat方式的虚拟机下做ssh连接
- 3.16 总线与信号分支线之间应该如何进行连接?OrCAD中使用Bus总线有哪些注意事项?
- CentOS8克隆虚拟机修改IP,错误:未知的连接 “ens160“