GBase 8s
适配迁移
问答

shardingsphere 整合 gbase配置报错

发表于2025-03-26 09:33:51222次浏览15个评论

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

【GBase版本】:

【操作系统】:

【CPU】:

【问题描述】*:

配置文件

shardingsphere:
props:
sql-show: false #打印SQL
datasource:
names: fwm-master,fwm-slave,fmwcj-master,fmwcj-slave
fwm-master:
jdbcUrl: jdbc:gbasedbt-sqli://xxxx:9088/fwmdb:GBASEDBTSERVER=xxx;DB_LOCALE=zh_CN.utf8;CLIENT_LOCALE=zh_CN.utf8;IFX_LOCK_MODE_WAIT=10
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.gbasedbt.jdbc.Driver
username
password

pom

<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
<version>5.2.1</version>
<exclusions>
<exclusion>
<artifactId>log4j</artifactId>
<groupId>log4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-cluster-mode-repository-nacos</artifactId>
<version>5.2.1</version>
</dependency>

 

gbase驱动  gbasedbtjdbc_3.5.1_3X2_1.jar

配置报错    No suitable driver

评论

登录后才可以发表评论
用户头像
路路路发表于 1年前
请稍等
用户头像
琳大大发表于 1年前
需要替换适配的jar包后可正常使用,有相近适配版本5.2.0
最佳回答
GBase用户26921发表于 1年前
@琳大大
org.apache.shardingsphere
shardingsphere-jdbc-core-spring-boot-starter
5.2.0


log4j
log4j




org.apache.shardingsphere
shardingsphere-cluster-mode-repository-nacos
5.2.0

这两个版本吗 maven上拉不下来
GBase用户26921发表于 1年前
@琳大大:Write data source name `fwm-master` not in database `logic_db`.
还是报错
用户头像
琳大大发表于 1年前
@GBase用户26921:留个邮箱,我给您发适配版本
GBase用户26921发表于 1年前
@琳大大:2546476279@qq.com
用户头像
琳大大发表于 1年前
@GBase用户26921:已发送
GBase用户26921发表于 1年前
@琳大大:Error preparing statement. Cause: org.apache.shardingsphere.sql.parser.exception.SQLParsingException
sql查询时报这个错误 而且没法用shardingsphere 的加密功能
用户头像
琳大大发表于 1年前
@GBase用户26921:具体什么样的sql
GBase用户47954发表于 2个月前
感谢作者的精彩分享!
沉香发表于 2个月前
不清楚啊。
紫菀发表于 2个月前
蹲个答案。
GBase用户47954发表于 2个月前
感谢作者的精彩分享!
ljt98发表于 2个月前
看看啦。
xiaowuyun发表于 2个月前
围观了。