GBase 8a
运维管理
文章

gdbc串

发表于2024-12-31 10:15:2717次浏览1个评论

jdbc:gbase://172.16.3.230:5258/test?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&failoverEnable=true&hostList=172.16.3.234,172.16.3.235&gclusterId=gc8

test库名

failoverEnable开启负载均衡,hostList和本体IP循环负载(除了连接节点外的所有管理节点)

rewriteBatchedStatements开启攒批

gclusterId:不同的gclusterId会创建不同的列表,用于区分被连接的集群,要求必须以a-z任意字符开头的可以包含a-z、0-9所有字符长度为最大为20的字符串

jdbc:gbase://172.16.3.230:5258/test?useUnicode=true&vcName=vc1&characterEncoding=utf8&rewriteBatchedStatements=true&failoverEnable=true&hostList=172.16.3.234,172.16.3.235&gclusterId=gc8

com.gbase.jdbc.Driver

评论

登录后才可以发表评论
用户头像
levvel发表于 8个月前
进来看看,应该有收获