forked from apache/shardingsphere-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
old_version_shardingsphere
84 lines (70 loc) · 3.61 KB
/
old_version_shardingsphere
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
commit a4ef004bc8487c62417d082775d1da2f6519cfa9
Author: zhaojinchao <[email protected]>
Date: Wed Aug 11 18:17:26 2021 +0800
Document yml configuration manual adds schemaName configuration item (#11749)
* document
* update
* update
* update
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/_index.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/_index.cn.md
index a16aea7e86..162bc3dfa7 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/_index.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/_index.cn.md
@@ -57,6 +57,18 @@ try (
## YAML 配置项
+### schemaName配置
+
+该参数为可选项,不配置则默认采用logic_db作为schemaName。
+schemaName可理解为数据库中的schema,JDBC中的datasource的别名
+通过该参数与治理模块可实现JDBC与PROXY同时在线,共享配置。
+
+##### 配置示例
+
+```yaml
+schemaName: sharding_db
+```
+
### 数据源配置
分为单数据源配置和多数据源配置。
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/_index.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/_index.en.md
index a12e2a27e1..65165cde13 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/_index.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/_index.en.md
@@ -59,6 +59,18 @@ try (
## YAML Configuration Item
+### schemaName Configuration
+
+This parameter is optional. If it is not configured, logic_db is used as the schemaName by default.
+schemaName can be understood as the schema in the database, the alias of the datasource in JDBC
+Through this parameter and the management module, JDBC and PROXY can be online at the same time, and the configuration can be shared.
+
+##### Configuration Example
+
+```yaml
+schemaName: sharding_db
+```
+
### Data Source Configuration
It is divided into single data source configuration and multi data source configuration.
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.cn.md
index 9c19a30797..b9d5a331d3 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.cn.md
@@ -8,6 +8,7 @@ weight = 5
### 治理
```yaml
+schemaName: #该参数为可选项,不配置则默认采用logic_db作为schemaName。通过该参数与治理模块可实现JDBC与PROXY同时在线
governance:
registryCenter: # 注册中心
type: # 治理持久化类型。如:Zookeeper, etcd
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.en.md
index 2a6c1fcba8..882f389904 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.en.md
@@ -8,6 +8,7 @@ weight = 5
### Management
```yaml
+schemaName: #Optional. If it is not configured, logic_db is used as the schemaName by default. Through this parameter and management module, JDBC and PROXY can be online at the same time
governance:
registryCenter: # Registry center
type: # Governance instance type. Example:Zookeeper, etcd