RaigorJiang commented on a change in pull request #13799:
URL: https://github.com/apache/shardingsphere/pull/13799#discussion_r756898112



##########
File path: 
docs/document/content/reference/api-change-history/shardingsphere-proxy/_index.cn.md
##########
@@ -4,6 +4,62 @@ weight = 1
 chapter = true
 +++
 
+## 5.0.0-beta
+
+### 数据源配置项说明
+
+```yaml
+schemaName: # 逻辑数据源名称
+
+dataSources: # 数据源配置,可配置多个 <data-source-name>
+  <data-source-name>: # 与 ShardingSphere-JDBC 配置不同,无需配置数据库连接池
+    url: #数据库 URL 连接
+    username: # 数据库用户名
+    password: # 数据库密码
+    connectionTimeoutMilliseconds: # 连接超时毫秒数
+    idleTimeoutMilliseconds: # 空闲连接回收超时毫秒数
+    maxLifetimeMilliseconds: # 连接最大存活时间毫秒数
+    maxPoolSize: 50 # 最大连接数
+    minPoolSize: 1  # 最小连接数     
+
+rules: # 与 ShardingSphere-JDBC 配置一致
+  # ...
+```
+
+### 权限配置
+
+用于执行登录 Sharding Proxy 的权限验证。 配置用户名、密码、可访问的数据库后,必须使用正确的用户名、密码才可登录。
+
+```yaml
+rules:
+  - !AUTHORITY
+    users:
+      - root@localhost:root  # <username>@<hostname>:<password>,hostname 为 % 
或空字符串,则代表不限制 host。
+      - sharding@:sharding
+    provider:
+      type: NATIVE  # 必须显式指定
+```
+
+hostname 为 % 或空字符串,则代表不限制 host。
+
+provider 的 type 必须显式指定,具体实现可以参考 [5.11 
Proxy](https://shardingsphere.apache.org/document/current/cn/dev-manual/proxy/)

Review comment:
       The link should no related to current version.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to