GBase 8a
运维管理
文章

jdbc连接串

发表于2024-12-30 17:46:4290次浏览2个评论

以下是连接信息

IP:10.4.43.53,10.4.43.57,10.4.43.61

端口:5258

数据库:test

用户名:gbase

密码:GBase2O11O531

驱动名称:com.gbase.jdbc.Driver

JDBC连接串:jdbc:gbase://10.4.43.53:5258/test?user=gbase&password=GBase2O11O531&failoverEnable=true&hostList=10.4.43.57,10.4.43.61&gclusterId=gc1

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

评论

登录后才可以发表评论
新疆油腻大叔发表于 2个月前
学会了
shepherd发表于 2个月前
继续努力