This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new b0c1297efca Replace schema in reference (#18537)
b0c1297efca is described below
commit b0c1297efca561fe8c58d12b2d17277374e50b83
Author: lanchengx <[email protected]>
AuthorDate: Thu Jun 23 20:56:56 2022 +0800
Replace schema in reference (#18537)
* Replace schema in reference/distsql with database
* Replace schema in Faq with database
---
.../syntax/rdl/resource-definition/add-resource.cn.md | 2 +-
.../syntax/rdl/resource-definition/add-resource.en.md | 6 +++---
.../syntax/rdl/resource-definition/alter-resource.en.md | 6 +++---
.../syntax/rdl/resource-definition/drop-resource.en.md | 2 +-
.../sharding/create-sharding-algorithm.en.md | 2 +-
.../sharding/create-sharding-table-rule.en.md | 6 +++---
.../syntax/rql/resource-query/show-resource.cn.md | 10 +++++-----
.../syntax/rql/resource-query/show-resource.en.md | 16 ++++++++--------
.../syntax/rql/resource-query/show-unused-resource.cn.md | 10 +++++-----
.../syntax/rql/resource-query/show-unused-resource.en.md | 16 ++++++++--------
.../syntax/rql/resource-query/show-used-resource.en.md | 16 ++++++++--------
.../rule-query/sharding/show-sharding-table-rule.cn.md | 6 +++---
.../rule-query/sharding/show-sharding-table-rule.en.md | 12 ++++++------
docs/document/content/reference/faq/_index.cn.md | 16 ++++++++--------
docs/document/content/reference/faq/_index.en.md | 16 ++++++++--------
15 files changed, 71 insertions(+), 71 deletions(-)
diff --git
a/docs/document/content/reference/distsql/syntax/rdl/resource-definition/add-resource.cn.md
b/docs/document/content/reference/distsql/syntax/rdl/resource-definition/add-resource.cn.md
index 0a572610ad3..2769456b344 100644
---
a/docs/document/content/reference/distsql/syntax/rdl/resource-definition/add-resource.cn.md
+++
b/docs/document/content/reference/distsql/syntax/rdl/resource-definition/add-resource.cn.md
@@ -6,7 +6,7 @@ weight = 2
### 描述
-`ADD RESOURCE` 语法用于为当前所选逻辑库(SCHEMA)添加资源。
+`ADD RESOURCE` 语法用于为当前所选逻辑库(DATABASE)添加资源。
diff --git
a/docs/document/content/reference/distsql/syntax/rdl/resource-definition/add-resource.en.md
b/docs/document/content/reference/distsql/syntax/rdl/resource-definition/add-resource.en.md
index 59402797ea1..dea76042499 100644
---
a/docs/document/content/reference/distsql/syntax/rdl/resource-definition/add-resource.en.md
+++
b/docs/document/content/reference/distsql/syntax/rdl/resource-definition/add-resource.en.md
@@ -6,7 +6,7 @@ weight = 2
### Description
-The `ADD RESOURCE` syntax is used to add resources for the currently selected
schema.
+The `ADD RESOURCE` syntax is used to add resources for the currently selected
database.
@@ -42,10 +42,10 @@ url ::=
```
### Supplement
-- Before adding resources, please confirm that a schema has been created in
Proxy, and execute the `use` command to successfully select a schema
+- Before adding resources, please confirm that a database has been created in
Proxy, and execute the `use` command to successfully select a database
- Confirm that the added resource can be connected normally, otherwise it will
not be added successfully
- `dataSourceName` is case-sensitive
-- `dataSourceName` needs to be unique within the current schema
+- `dataSourceName` needs to be unique within the current database
- `dataSourceName` name only allows letters, numbers and `_`, and must start
with a letter
- `poolProperty` is used to customize connection pool parameters, `key` must
be the same as the connection pool parameter name, `value` supports int and
String types
- When `password` contains special characters, it is recommended to use the
string form; for example, the string form of `password@123` is `"password@123"`
diff --git
a/docs/document/content/reference/distsql/syntax/rdl/resource-definition/alter-resource.en.md
b/docs/document/content/reference/distsql/syntax/rdl/resource-definition/alter-resource.en.md
index 1141a5414c9..f96281392c4 100644
---
a/docs/document/content/reference/distsql/syntax/rdl/resource-definition/alter-resource.en.md
+++
b/docs/document/content/reference/distsql/syntax/rdl/resource-definition/alter-resource.en.md
@@ -6,7 +6,7 @@ weight = 3
### Description
-The `ALTER RESOURCE` syntax is used to alter resources for the currently
selected schema.
+The `ALTER RESOURCE` syntax is used to alter resources for the currently
selected database.
@@ -42,9 +42,9 @@ url ::=
```
### Supplement
-- Before altering the resources, please confirm that a schema exists in Proxy,
and execute the `use` command to successfully select a schema
+- Before altering the resources, please confirm that a database exists in
Proxy, and execute the `use` command to successfully select a database
- `dataSourceName` is case-sensitive
-- `dataSourceName` needs to be unique within the current schema
+- `dataSourceName` needs to be unique within the current database
- `dataSourceName` name only allows letters, numbers and `_`, and must start
with a letter
- `poolProperty` is used to customize connection pool parameters, `key` must
be the same as the connection pool parameter name, `value` supports int and
String types
- When `password` contains special characters, it is recommended to use the
string form; for example, the string form of `password@123` is `"password@123"`
diff --git
a/docs/document/content/reference/distsql/syntax/rdl/resource-definition/drop-resource.en.md
b/docs/document/content/reference/distsql/syntax/rdl/resource-definition/drop-resource.en.md
index aac4a0ea675..c0354f8ee80 100644
---
a/docs/document/content/reference/distsql/syntax/rdl/resource-definition/drop-resource.en.md
+++
b/docs/document/content/reference/distsql/syntax/rdl/resource-definition/drop-resource.en.md
@@ -5,7 +5,7 @@ weight = 4
### Description
-The `DROP RESOURCE` syntax is used to drop resources from the current schema
+The `DROP RESOURCE` syntax is used to drop resources from the current database
### Syntax
```SQL
diff --git
a/docs/document/content/reference/distsql/syntax/rdl/rule-definition/sharding/create-sharding-algorithm.en.md
b/docs/document/content/reference/distsql/syntax/rdl/rule-definition/sharding/create-sharding-algorithm.en.md
index 75636651ddb..d57690092c3 100644
---
a/docs/document/content/reference/distsql/syntax/rdl/rule-definition/sharding/create-sharding-algorithm.en.md
+++
b/docs/document/content/reference/distsql/syntax/rdl/rule-definition/sharding/create-sharding-algorithm.en.md
@@ -5,7 +5,7 @@ weight = 2
## Description
-The `CREATE SHARDING ALGORITHM` syntax is used to create a sharding algorithm
for the currently selected schema.
+The `CREATE SHARDING ALGORITHM` syntax is used to create a sharding algorithm
for the currently selected database.
### Syntax
diff --git
a/docs/document/content/reference/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule.en.md
b/docs/document/content/reference/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule.en.md
index db60f44c478..7ef05036eab 100644
---
a/docs/document/content/reference/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule.en.md
+++
b/docs/document/content/reference/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule.en.md
@@ -5,7 +5,7 @@ weight = 2
## Description
-The `CREATE SHARDING TABLE RULE` syntax is used to add sharding table rule for
the currently selected schema
+The `CREATE SHARDING TABLE RULE` syntax is used to add sharding table rule for
the currently selected database
### Syntax
@@ -48,11 +48,11 @@ algorithmName ::=
- `tableDefinition` is defined for standard sharding table rule;
`autoTableDefinition` is defined for auto sharding table rule. For standard
sharding rules and auto sharding rule, refer to [Data
Sharding](en/user-manual/shardingsphere-jdbc/yaml-config/rules/sharding/).
- use standard sharding table rule
- - `DATANODES` can only use resources that have been added to the current
schema, and can only use INLINE expressions to specify required resources
+ - `DATANODES` can only use resources that have been added to the current
database, and can only use INLINE expressions to specify required resources
- `DATABASE_STRATEGY`, `TABLE_STRATEGY` are the database sharding strategy
and the table sharding strategy, which are optional, and the default strategy
is used when not configured
- The attribute `TYPE` in `strategyDefinition` is used to specify the type
of [Sharding
Algorithm](/en/features/sharding/concept/sharding/#user-defined-sharding-algorithm),
currently only supports `STANDARD`, `COMPLEX`. Using `COMPLEX` requires
specifying multiple sharding columns with `SHARDING_COLUMNS`.
- use auto sharding table rule
- - `RESOURCES` can only use resources that have been added to the current
schema, and the required resources can be specified by enumeration or INLINE
expression
+ - `RESOURCES` can only use resources that have been added to the current
database, and the required resources can be specified by enumeration or INLINE
expression
- Only auto sharding algorithm can be used, please refer to [Auto Sharding
Algorithm](/en/user-manual/shardingsphere-jdbc/builtin-algorithm/sharding/#auto-sharding-algorithm)
- `algorithmType` is the sharding algorithm type, please refer to [Sharding
Algorithm](en/user-manual/shardingsphere-jdbc/builtin-algorithm/sharding)
- The auto-generated algorithm naming rule is `tableName` _ `strategyType` _
`shardingAlgorithmType`
diff --git
a/docs/document/content/reference/distsql/syntax/rql/resource-query/show-resource.cn.md
b/docs/document/content/reference/distsql/syntax/rql/resource-query/show-resource.cn.md
index 13c4925b35b..83b2832178f 100644
---
a/docs/document/content/reference/distsql/syntax/rql/resource-query/show-resource.cn.md
+++
b/docs/document/content/reference/distsql/syntax/rql/resource-query/show-resource.cn.md
@@ -12,15 +12,15 @@ weight = 2
```SQL
ShowResource ::=
- 'SHOW' 'SCHEMA' 'RESOURCES' ('FROM' schemaName)?
+ 'SHOW' 'DATABASE' 'RESOURCES' ('FROM' databaseName)?
-schemaName ::=
+databaseName ::=
identifier
```
### 特别说明
-- 未指定 `schemaName` 时,默认是当前使用的 `SCHEMA`; 如未使用 `SCHEMA` 则会提示 `No database
selected`。
+- 未指定 `databaseName` 时,默认是当前使用的 `DATABASE`; 如未使用 `DATABASE` 则会提示 `No database
selected`。
### 返回值说明
@@ -37,7 +37,7 @@ schemaName ::=
- 查询指定逻辑库的资源
```sql
-SHOW SCHEMA RESOURCES FROM sharding_db;
+SHOW DATABASE RESOURCES FROM sharding_db;
```
```sql
+------+-------+-----------+------+------+---------------------------------+---------------------------+---------------------------+---------------+---------------+-----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[...]
@@ -51,7 +51,7 @@ SHOW SCHEMA RESOURCES FROM sharding_db;
- 查询当前逻辑库的资源
```sql
-SHOW SCHEMA RESOURCES;
+SHOW DATABASE RESOURCES;
```
```sql
+------+-------+-----------+------+------+---------------------------------+---------------------------+---------------------------+---------------+---------------+-----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[...]
diff --git
a/docs/document/content/reference/distsql/syntax/rql/resource-query/show-resource.en.md
b/docs/document/content/reference/distsql/syntax/rql/resource-query/show-resource.en.md
index eaa67148a22..0a3e67a7037 100644
---
a/docs/document/content/reference/distsql/syntax/rql/resource-query/show-resource.en.md
+++
b/docs/document/content/reference/distsql/syntax/rql/resource-query/show-resource.en.md
@@ -5,21 +5,21 @@ weight = 2
### Description
-The `SHOW RESOURCE` syntax is used to query the resources that have been added
to the specified schema.
+The `SHOW RESOURCE` syntax is used to query the resources that have been added
to the specified database.
### Syntax
```SQL
ShowResource ::=
- 'SHOW' 'SCHEMA' 'RESOURCES' ('FROM' schemaName)?
+ 'SHOW' 'DATABASE' 'RESOURCES' ('FROM' databaseName)?
-schemaName ::=
+databaseName ::=
identifier
```
### Supplement
-- When `schemaName` is not specified, the default is the currently used
`SCHEMA`; if `SCHEMA` is not used, it will prompt `No database selected`.
+- When `databaseName` is not specified, the default is the currently used
`DATABASE`; if `DATABASE` is not used, it will prompt `No database selected`.
### Return Value Description
@@ -34,10 +34,10 @@ schemaName ::=
### Example
-- Query resources for the specified schema
+- Query resources for the specified database
```sql
-SHOW SCHEMA RESOURCES FROM sharding_db;
+SHOW DATABASE RESOURCES FROM sharding_db;
```
```sql
+------+-------+-----------+------+------+---------------------------------+---------------------------+---------------------------+---------------+---------------+-----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[...]
@@ -49,9 +49,9 @@ SHOW SCHEMA RESOURCES FROM sharding_db;
2 rows in set (0.26 sec)
```
-- Query resources for the current schema
+- Query resources for the current database
```sql
-SHOW SCHEMA RESOURCES;
+SHOW DATABASE RESOURCES;
```
```sql
+------+-------+-----------+------+------+---------------------------------+---------------------------+---------------------------+---------------+---------------+-----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[...]
diff --git
a/docs/document/content/reference/distsql/syntax/rql/resource-query/show-unused-resource.cn.md
b/docs/document/content/reference/distsql/syntax/rql/resource-query/show-unused-resource.cn.md
index f736b8e1a11..12a7d2f583f 100644
---
a/docs/document/content/reference/distsql/syntax/rql/resource-query/show-unused-resource.cn.md
+++
b/docs/document/content/reference/distsql/syntax/rql/resource-query/show-unused-resource.cn.md
@@ -11,15 +11,15 @@ weight = 3
```SQL
ShowUnusedResource ::=
- 'SHOW' 'UNUSED' 'SCHEMA'? 'RESOURCES' ('FROM' schemaName)?
+ 'SHOW' 'UNUSED' 'DATABASE'? 'RESOURCES' ('FROM' databaseName)?
-schemaName ::=
+databaseName ::=
identifier
```
### 特别说明
-- 未指定 `schemaName` 时,默认是当前使用的 `SCHEMA`; 如未使用 `SCHEMA` 则会提示 `No database
selected`。
+- 未指定 `databaseName` 时,默认是当前使用的 `DATABASE`; 如未使用 `DATABASE` 则会提示 `No database
selected`。
### 返回值说明
@@ -36,7 +36,7 @@ schemaName ::=
- 查询指定逻辑库的资源
```sql
-SHOW UNUSED SCHEMA RESOURCES FROM sharding_db;
+SHOW UNUSED DATABASE RESOURCES FROM sharding_db;
```
```sql
+------+-------+-----------+------+------+---------------------------------+---------------------------+---------------------------+---------------+---------------+-----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[...]
@@ -49,7 +49,7 @@ SHOW UNUSED SCHEMA RESOURCES FROM sharding_db;
- 查询当前逻辑库的资源
```sql
-SHOW UNUSED SCHEMA RESOURCES;
+SHOW UNUSED DATABASE RESOURCES;
```
```sql
+------+-------+-----------+------+------+---------------------------------+---------------------------+---------------------------+---------------+---------------+-----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[...]
diff --git
a/docs/document/content/reference/distsql/syntax/rql/resource-query/show-unused-resource.en.md
b/docs/document/content/reference/distsql/syntax/rql/resource-query/show-unused-resource.en.md
index e3fe4765e76..1aa8d0d4381 100644
---
a/docs/document/content/reference/distsql/syntax/rql/resource-query/show-unused-resource.en.md
+++
b/docs/document/content/reference/distsql/syntax/rql/resource-query/show-unused-resource.en.md
@@ -5,21 +5,21 @@ weight = 3
### Description
-The `SHOW UNUSED RESOURCE` syntax is used to query resources in the specified
schema that have not been referenced by rules.
+The `SHOW UNUSED RESOURCE` syntax is used to query resources in the specified
database that have not been referenced by rules.
### Syntax
```SQL
ShowUnusedResource ::=
- 'SHOW' 'UNUSED' 'SCHEMA'? 'RESOURCES' ('FROM' schemaName)?
+ 'SHOW' 'UNUSED' 'DATABASE'? 'RESOURCES' ('FROM' databaseName)?
-schemaName ::=
+databaseName ::=
identifier
```
### Supplement
-- When `schemaName` is not specified, the default is the currently used
`SCHEMA`; if `SCHEMA` is not used, it will prompt `No database selected`.
+- When `databaseName` is not specified, the default is the currently used
`DATABASE`; if `DATABASE` is not used, it will prompt `No database selected`.
### Return Value Description
@@ -34,10 +34,10 @@ schemaName ::=
### Example
-- Query resources for the specified schema
+- Query resources for the specified database
```sql
-SHOW UNUSED SCHEMA RESOURCES FROM sharding_db;
+SHOW UNUSED DATABASE RESOURCES FROM sharding_db;
```
```sql
+------+-------+-----------+------+------+---------------------------------+---------------------------+---------------------------+---------------+---------------+-----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[...]
@@ -48,10 +48,10 @@ SHOW UNUSED SCHEMA RESOURCES FROM sharding_db;
1 rows in set (0.26 sec)
```
-- Query resources for the current schema
+- Query resources for the current database
```sql
-SHOW UNUSED SCHEMA RESOURCES;
+SHOW UNUSED DATABASE RESOURCES;
```
```sql
+------+-------+-----------+------+------+---------------------------------+---------------------------+---------------------------+---------------+---------------+-----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[...]
diff --git
a/docs/document/content/reference/distsql/syntax/rql/resource-query/show-used-resource.en.md
b/docs/document/content/reference/distsql/syntax/rql/resource-query/show-used-resource.en.md
index 4140757f36f..0ba7d62f4c2 100644
---
a/docs/document/content/reference/distsql/syntax/rql/resource-query/show-used-resource.en.md
+++
b/docs/document/content/reference/distsql/syntax/rql/resource-query/show-used-resource.en.md
@@ -5,21 +5,21 @@ weight = 4
### Description
-The `SHOW USED RESOURCE` syntax is used to query the resources that have been
added to the specified schema.
+The `SHOW USED RESOURCE` syntax is used to query the resources that have been
added to the specified database.
### Syntax
```SQL
ShowUsedResource ::=
- 'SHOW' 'USED' 'SCHEMA' 'RESOURCES' ('FROM' schemaName)?
+ 'SHOW' 'USED' 'DATABASE' 'RESOURCES' ('FROM' databaseName)?
-schemaName ::=
+databaseName ::=
identifier
```
### Supplement
-- When `schemaName` is not specified, the default is the currently used
`SCHEMA`; if `SCHEMA` is not used, it will prompt `No database selected`.
+- When `databaseName` is not specified, the default is the currently used
`DATABASE`; if `DATABASE` is not used, it will prompt `No database selected`.
### Return Value Description
@@ -34,10 +34,10 @@ schemaName ::=
### Example
-- Query resources for the specified schema
+- Query resources for the specified database
```sql
-SHOW USED SCHEMA RESOURCES FROM sharding_db;
+SHOW USED DATABASE RESOURCES FROM sharding_db;
```
```sql
+------+-------+-----------+------+------+---------------------------------+---------------------------+---------------------------+---------------+---------------+-----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[...]
@@ -49,9 +49,9 @@ SHOW USED SCHEMA RESOURCES FROM sharding_db;
2 rows in set (0.26 sec)
```
-- Query resources for the current schema
+- Query resources for the current database
```sql
-SHOW USED SCHEMA RESOURCES;
+SHOW USED DATABASE RESOURCES;
```
```sql
+------+-------+-----------+------+------+---------------------------------+---------------------------+---------------------------+---------------+---------------+-----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[...]
diff --git
a/docs/document/content/reference/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rule.cn.md
b/docs/document/content/reference/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rule.cn.md
index a84be61e5a7..35d1454b624 100644
---
a/docs/document/content/reference/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rule.cn.md
+++
b/docs/document/content/reference/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rule.cn.md
@@ -11,17 +11,17 @@ weight = 3
### 语法
```
ShowShardingTableRule ::=
- 'SHOW' 'SHARDING' 'TABLE' ('RULE' tableName | 'RULES') ('FROM' schemaName)?
+ 'SHOW' 'SHARDING' 'TABLE' ('RULE' tableName | 'RULES') ('FROM' databaseName)?
tableName ::=
identifier
-schemaName ::=
+databaseName ::=
identifier
```
### 补充说明
-- 未指定 `schemaName` 时,默认是当前使用的 `SCHEMA`。 如果也未使用 `SCHEMA` 则会提示 `No database
selected`。
+- 未指定 `databaseName` 时,默认是当前使用的 `DATABASE`。 如果也未使用 `DATABASE` 则会提示 `No
database selected`。
### 返回值说明
diff --git
a/docs/document/content/reference/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rule.en.md
b/docs/document/content/reference/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rule.en.md
index 34480117500..bd6283bca8e 100644
---
a/docs/document/content/reference/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rule.en.md
+++
b/docs/document/content/reference/distsql/syntax/rql/rule-query/sharding/show-sharding-table-rule.en.md
@@ -6,22 +6,22 @@ weight = 3
### Description
-The `SHOW SHARDING TABLE RULE` syntax is used to query the sharding table rule
in the specified schema.
+The `SHOW SHARDING TABLE RULE` syntax is used to query the sharding table rule
in the specified database.
### Syntax
```
ShowShardingTableRule ::=
- 'SHOW' 'SHARDING' 'TABLE' ('RULE' tableName | 'RULES') ('FROM' schemaName)?
+ 'SHOW' 'SHARDING' 'TABLE' ('RULE' tableName | 'RULES') ('FROM' databaseName)?
tableName ::=
identifier
-schemaName ::=
+databaseName ::=
identifier
```
### Supplement
-- When `schemaName` is not specified, the default is the currently used
`SCHEMA`. If `SCHEMA` is not used, `No database selected` will be prompted.
+- When `databaseName` is not specified, the default is the currently used
`DATABASE`. If `DATABASE` is not used, `No database selected` will be prompted.
### Return value description
@@ -43,7 +43,7 @@ schemaName ::=
| key_generator_props | Sharding key generator properties
|
### Example
-- Query the sharding table rules of the specified logical schema
+- Query the sharding table rules of the specified logical database
```sql
SHOW SHARDING TABLE RULES FROM sharding_db;
```
@@ -57,7 +57,7 @@ SHOW SHARDING TABLE RULES FROM sharding_db;
2 rows in set (0.12 sec)
```
-- Query the sharding table rules of the current logic schema
+- Query the sharding table rules of the current logic database
```sql
SHOW SHARDING TABLE RULES;
```
diff --git a/docs/document/content/reference/faq/_index.cn.md
b/docs/document/content/reference/faq/_index.cn.md
index d1645e75b77..16041f1d500 100644
--- a/docs/document/content/reference/faq/_index.cn.md
+++ b/docs/document/content/reference/faq/_index.cn.md
@@ -40,16 +40,16 @@ META-INF\namespace\sharding.xsd 和
META-INF\namespace\replica-query.xsd,只
tar zxvf
apache-shardingsphere-${RELEASE.VERSION}-shardingsphere-proxy-bin.tar.gz
```
-## [Proxy] 在使用 ShardingSphere-Proxy 的时候,如何动态在添加新的 logic schema?
+## [Proxy] 在使用 ShardingSphere-Proxy 的时候,如何动态在添加新的逻辑库?
回答:
-使用 ShardingSphere-Proxy 时,可以通过 `DistSQL` 动态的创建或移除 logic schema,语法如下:
+使用 ShardingSphere-Proxy 时,可以通过 `DistSQL` 动态的创建或移除逻辑库,语法如下:
```sql
-CREATE (DATABASE | SCHEMA) [IF NOT EXISTS] schemaName;
+CREATE DATABASE [IF NOT EXISTS] databaseName;
-DROP (DATABASE | SCHEMA) [IF EXISTS] schemaName;
+DROP DATABASE [IF EXISTS] databaseName;
```
例:
@@ -57,7 +57,7 @@ DROP (DATABASE | SCHEMA) [IF EXISTS] schemaName;
```sql
CREATE DATABASE sharding_db;
-DROP SCHEMA sharding_db;
+DROP DATABASE sharding_db;
```
## [Proxy] 在使用 ShardingSphere-Proxy 时,怎么使用合适的工具连接到 ShardingSphere-Proxy?
@@ -71,12 +71,12 @@ DROP SCHEMA sharding_db;
- DataGrip:2020.1、2021.1(使用 IDEA/DataGrip 时打开 `introspect using JDBC
metadata` 选项)。
- WorkBench:8.0.25。
-## [Proxy] 使用 Navicat 等第三方数据库工具连接 ShardingSphere-Proxy 时,如果
ShardingSphere-Proxy 没有创建 Schema 或者没有添加 Resource,连接失败?
+## [Proxy] 使用 Navicat 等第三方数据库工具连接 ShardingSphere-Proxy 时,如果
ShardingSphere-Proxy 没有创建 Database 或者没有添加 Resource,连接失败?
回答:
-1. 第三方数据库工具在连接 ShardingSphere-Proxy 时会发送一些 SQL 查询元数据,当 ShardingSphere-Proxy
没有创建 `schema` 或者没有添加 `resource` 时,ShardingSphere-Proxy 无法执行 SQL。
-2. 推荐先创建 `schema` 和 `resource` 之后再使用第三方数据库工具连接。
+1. 第三方数据库工具在连接 ShardingSphere-Proxy 时会发送一些 SQL 查询元数据,当 ShardingSphere-Proxy
没有创建 `database` 或者没有添加 `resource` 时,ShardingSphere-Proxy 无法执行 SQL。
+2. 推荐先创建 `database` 和 `resource` 之后再使用第三方数据库工具连接。
3. 有关 `resource`
的详情请参考。[相关介绍](/cn/user-manual/shardingsphere-proxy/distsql/syntax/rdl/resource-definition/)
## [分片] Cloud not resolve placeholder ... in string value ... 异常的解决方法?
diff --git a/docs/document/content/reference/faq/_index.en.md
b/docs/document/content/reference/faq/_index.en.md
index c823c7e19a9..8219ab782c4 100644
--- a/docs/document/content/reference/faq/_index.en.md
+++ b/docs/document/content/reference/faq/_index.en.md
@@ -40,16 +40,16 @@ Open cmd.exe and execute the following command:
tar zxvf
apache-shardingsphere-${RELEASE.VERSION}-shardingsphere-proxy-bin.tar.gz
```
-## [Proxy] How to add a new logic schema dynamically when use
ShardingSphere-Proxy?
+## [Proxy] How to add a new logic database dynamically when use
ShardingSphere-Proxy?
Answer:
-When using ShardingSphere-Proxy, users can dynamically create or drop logic
schema through `DistSQL`, the syntax is as follows:
+When using ShardingSphere-Proxy, users can dynamically create or drop logic
database through `DistSQL`, the syntax is as follows:
```sql
-CREATE (DATABASE | SCHEMA) [IF NOT EXISTS] schemaName;
+CREATE DATABASE [IF NOT EXISTS] databaseName;
-DROP (DATABASE | SCHEMA) [IF EXISTS] schemaName;
+DROP DATABASE [IF EXISTS] databaseName;
```
Example:
@@ -57,7 +57,7 @@ Example:
```sql
CREATE DATABASE sharding_db;
-DROP SCHEMA sharding_db;
+DROP DATABASE sharding_db;
```
## [Proxy] How to use a suitable database tools connecting
ShardingSphere-Proxy?
@@ -71,12 +71,12 @@ Answer:
- DataGrip:2020.1, 2021.1 (turn on "introspect using jdbc metadata" in idea
or datagrip).
- WorkBench:8.0.25.
-## [Proxy] When using a client such as Navicat to connect to
ShardingSphere-Proxy, if ShardingSphere-Proxy does not create a Schema or does
not add a Resource, the client connection will fail?
+## [Proxy] When using a client such as Navicat to connect to
ShardingSphere-Proxy, if ShardingSphere-Proxy does not create a database or
does not add a resource, the client connection will fail?
Answer:
-1. Third-party database tools will send some SQL query metadata when
connecting to ShardingSphere-Proxy. When ShardingSphere-Proxy does not create a
`schema` or does not add a `resource`, ShardingSphere-Proxy cannot execute SQL.
-2. It is recommended to create `schema` and `resource` first, and then use
third-party database tools to connect.
+1. Third-party database tools will send some SQL query metadata when
connecting to ShardingSphere-Proxy. When ShardingSphere-Proxy does not create a
`database` or does not add a `resource`, ShardingSphere-Proxy cannot execute
SQL.
+2. It is recommended to create `database` and `resource` first, and then use
third-party database tools to connect.
3. Please refer to [Related
introduction](/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/resource-definition/)
the details about `resource`.
## [Sharding] How to solve `Cloud not resolve placeholder … in string value …`
error?