GBase 8s
适配迁移
问答

数据库地点信息不匹配。

发表于2025-07-11 17:09:41114次浏览3个评论

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

【GBase版本】:GBase8sV8.8_TL_3.6.3_3X1_1_e10e03_RHEL6_x86_64

【操作系统】:

NAME="CentOS Linux"

VERSION="7 (Core)"

ID="centos"

ID_LIKE="rhel fedora"

VERSION_ID="7"

PRETTY_NAME="CentOS Linux 7 (Core)"

ANSI_COLOR="0;31"

CPE_NAME="cpe:/o:centos:centos:7"

HOME_URL="https://www.centos.org/"

BUG_REPORT_URL="https://bugs.centos.org/"

 

CENTOS_MANTISBT_PROJECT="CentOS-7"

CENTOS_MANTISBT_PROJECT_VERSION="7"

REDHAT_SUPPORT_PRODUCT="centos"

REDHAT_SUPPORT_PRODUCT_VERSION="7"

【CPU】:

Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 16 On-line CPU(s) list: 0-15 Thread(s) per core: 1 Core(s) per socket: 4 座: 4 NUMA 节点: 1 厂商 ID: GenuineIntel CPU 系列: 15 型号: 6 型号名称: Common KVM processor 步进: 1 CPU MHz: 2199.998 BogoMIPS: 4399.99 超管理器厂商: KVM 虚拟化类型: 完全 L1d 缓存: 32K L1i 缓存: 32K L2 缓存: 4096K L3 缓存: 16384K NUMA 节点0 CPU: 0-15 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc nopl xtopology eagerfpu pni cx16 x2apic hypervisor lahf_lm

【问题描述】*: 使用jdbc连接GBase时报错:

Exception in thread "main" java.sql.SQLException: 数据库地点信息不匹配。

以下是我的Java代码:

Class.forName("com.gbasedbt.jdbc.Driver");
String url = "jdbc:gbasedbt-sqli://host:port/test:GBASEDBTSERVER=gbaseserver;user=user;password=pwd";
Connection connection = DriverManager.getConnection(url);

评论

登录后才可以发表评论
用户头像
liaosnet发表于 1年前
自动化初始安装的话,一般是utf8字符集。
URL中增加 DB_LOCALE=zh_CN.utf8;CLIENT_LOCALE=zh_CN.utf8
最佳回答
崔哥发表于 6个月前
梅花不肯傍春光,自向深冬著艳阳。龙笛远吹胡地月,燕钗初试汉宫妆。风虽强暴翻添思,雪欲侵凌更助香。应笑暂时桃李树,盗天和气作年芳。
崔哥发表于 4个月前
古木阴中系短篷,杖藜扶我过桥东。沾衣欲湿杏花雨,吹面不寒杨柳风。