数据库地点信息不匹配。
为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【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);
热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25044
- 42023-09-25浏览数:18519
- 52020-05-11浏览数:17526
URL中增加 DB_LOCALE=zh_CN.utf8;CLIENT_LOCALE=zh_CN.utf8