diff --git a/src/.vuepress/sidebar/V2.0.x/en-Table.ts b/src/.vuepress/sidebar/V2.0.x/en-Table.ts index 850e77f66..8a4fb24c9 100644 --- a/src/.vuepress/sidebar/V2.0.x/en-Table.ts +++ b/src/.vuepress/sidebar/V2.0.x/en-Table.ts @@ -239,6 +239,8 @@ export const enSidebar = { { text: 'Set Operations', link: 'Set-Operations_apache' }, ], }, + { text: 'Data Sync', link: 'SQL-Data-Sync_apache' }, + { text: 'Authority Management', link: 'SQL-Authority-Management_apache' }, { text: 'Maintenance Statements', link: 'SQL-Maintenance-Statements_apache' }, { text: 'Identifier', link: 'Identifier' }, { text: 'Keywords', link: 'Keywords' }, diff --git a/src/.vuepress/sidebar/V2.0.x/zh-Table.ts b/src/.vuepress/sidebar/V2.0.x/zh-Table.ts index e4b1ce051..96e73b14c 100644 --- a/src/.vuepress/sidebar/V2.0.x/zh-Table.ts +++ b/src/.vuepress/sidebar/V2.0.x/zh-Table.ts @@ -238,6 +238,8 @@ export const zhSidebar = { { text: '集合操作', link: 'Set-Operations_apache' }, ], }, + { text: '数据同步', link: 'SQL-Data-Sync_apache' }, + { text: '权限管理', link: 'SQL-Authority-Management_apache' }, { text: '运维语句', link: 'SQL-Maintenance-Statements_apache' }, { text: '标识符', link: 'Identifier' }, { text: '保留字&关键字', link: 'Keywords' }, diff --git a/src/UserGuide/Master/Table/SQL-Manual/SQL-Authority-Management_apache.md b/src/UserGuide/Master/Table/SQL-Manual/SQL-Authority-Management_apache.md new file mode 100644 index 000000000..8b95ff036 --- /dev/null +++ b/src/UserGuide/Master/Table/SQL-Manual/SQL-Authority-Management_apache.md @@ -0,0 +1,378 @@ + + +# Authority Management + +This document is the SQL manual for authority management starting from version V2.0.7. For detailed function usage, see [Authority Management](../User-Manual/Authority-Management-Upgrade_apache.md). For an introduction to authority management functions before version V2.0.7, refer to [Authority Management](../User-Manual/Authority-Management_apache.md) + +## 1. Privilege List + +
| Privilege Type | +Privilege Name | +Scope of Effect | +Description | +
|---|---|---|---|
| Global Privileges | +SYSTEM | +Global | +Allows users to create, modify, and delete databases. | +
| Allows users to create, modify, and delete tables and table views. | +|||
| Allows users to create, delete, and view user-defined functions. | +|||
| Allows users to create, start, stop, delete, and view PIPEs. Allows users to create, delete, and view PIPEPLUGINS. | +|||
| Allows users to query and cancel queries. Allows users to view variables. Allows users to view cluster status. | +|||
| Allows users to create, delete, and view deep learning models. | +|||
| SECURITY | +Global | +Allows users to create users. | +|
| Allows users to delete users. | +|||
| Allows users to modify user passwords. | +|||
| Allows users to view user privilege information. | +|||
| Allows users to list all users. | +|||
| Allows users to create roles. | +|||
| Allows users to delete roles. | +|||
| Allows users to view role privilege information. | +|||
| Allows users to grant a role to a user or revoke it. | +|||
| Allows users to list all roles. | +|||
| AUDIT | +Global | +Allows users to maintain audit log rules and view audit logs. | +|
| Data Privileges | +CREATE | +ANY | +Allows creating any table and any database. | +
| Database | +Allows users to create tables under this database; allows users to create a database with this name. | +||
| Table | +Allows users to create a table with this name. | +||
| ALTER | +ANY | +Allows modifying the definition of any table and any database. | +|
| Database | +Allows users to modify the definition of a database and the definitions of tables under that database. | +||
| Table | +Allows users to modify the definition of a table. | +||
| SELECT | +ANY | +Allows querying data from any table in any database in the system. | +|
| Database | +Allows users to query data from any table in this database. | +||
| Table | +Allows users to query data in this table. When executing multi-table queries, the database only displays data that the user has permission to access. | +||
| INSERT | +ANY | +Allows inserting/updating data into any table in any database. | +|
| Database | +Allows users to insert/update data into any table within the scope of this database. | +||
| Table | +Allows users to insert/update data into this table. | +||
| DELETE | +ANY | +Allows deleting data from any table. | +|
| Database | +Allows users to delete data within the scope of this database. | +||
| Table | +Allows users to delete data from this table. | +
| Privilege Type | +Privilege Name | +Scope of Effect | +Description | +
|---|---|---|---|
| Global Privileges | +SYSTEM | +Global | +Allows users to create, modify, and delete databases. | +
| Allows users to create, modify, and delete tables and table views. | +|||
| Allows users to create, delete, and view user-defined functions. | +|||
| Allows users to create, start, stop, delete, and view PIPEs. Allows users to create, delete, and view PIPEPLUGINS. | +|||
| Allows users to query and cancel queries. Allows users to view variables. Allows users to view cluster status. | +|||
| Allows users to create, delete, and view deep learning models. | +|||
| SECURITY | +Global | +Allows users to create users. | +|
| Allows users to delete users. | +|||
| Allows users to modify user passwords. | +|||
| Allows users to view user privilege information. | +|||
| Allows users to list all users. | +|||
| Allows users to create roles. | +|||
| Allows users to delete roles. | +|||
| Allows users to view role privilege information. | +|||
| Allows users to grant a role to a user or revoke it. | +|||
| Allows users to list all roles. | +|||
| AUDIT | +Global | +Allows users to maintain audit log rules and view audit logs. | +|
| Data Privileges | +CREATE | +ANY | +Allows creating any table and any database. | +
| Database | +Allows users to create tables under this database; allows users to create a database with this name. | +||
| Table | +Allows users to create a table with this name. | +||
| ALTER | +ANY | +Allows modifying the definition of any table and any database. | +|
| Database | +Allows users to modify the definition of a database and the definitions of tables under that database. | +||
| Table | +Allows users to modify the definition of a table. | +||
| SELECT | +ANY | +Allows querying data from any table in any database in the system. | +|
| Database | +Allows users to query data from any table in this database. | +||
| Table | +Allows users to query data in this table. When executing multi-table queries, the database only displays data that the user has permission to access. | +||
| INSERT | +ANY | +Allows inserting/updating data into any table in any database. | +|
| Database | +Allows users to insert/update data into any table within the scope of this database. | +||
| Table | +Allows users to insert/update data into this table. | +||
| DELETE | +ANY | +Allows deleting data from any table. | +|
| Database | +Allows users to delete data within the scope of this database. | +||
| Table | +Allows users to delete data from this table. | +
| Privilege Type | +Privilege Name | +Scope of Effect | +Description | +
|---|---|---|---|
| Global Privileges | +SYSTEM | +Global | +Allows users to create, modify, and delete databases. | +
| Allows users to create, modify, and delete tables and table views. | +|||
| Allows users to create, delete, and view user-defined functions. | +|||
| Allows users to create, start, stop, delete, and view PIPEs. Allows users to create, delete, and view PIPEPLUGINS. | +|||
| Allows users to query and cancel queries. Allows users to view variables. Allows users to view cluster status. | +|||
| Allows users to create, delete, and view deep learning models. | +|||
| SECURITY | +Global | +Allows users to create users. | +|
| Allows users to delete users. | +|||
| Allows users to modify user passwords. | +|||
| Allows users to view user privilege information. | +|||
| Allows users to list all users. | +|||
| Allows users to create roles. | +|||
| Allows users to delete roles. | +|||
| Allows users to view role privilege information. | +|||
| Allows users to grant a role to a user or revoke it. | +|||
| Allows users to list all roles. | +|||
| AUDIT | +Global | +Allows users to maintain audit log rules and view audit logs. | +|
| Data Privileges | +CREATE | +ANY | +Allows creating any table and any database. | +
| Database | +Allows users to create tables under this database; allows users to create a database with this name. | +||
| Table | +Allows users to create a table with this name. | +||
| ALTER | +ANY | +Allows modifying the definition of any table and any database. | +|
| Database | +Allows users to modify the definition of a database and the definitions of tables under that database. | +||
| Table | +Allows users to modify the definition of a table. | +||
| SELECT | +ANY | +Allows querying data from any table in any database in the system. | +|
| Database | +Allows users to query data from any table in this database. | +||
| Table | +Allows users to query data in this table. When executing multi-table queries, the database only displays data that the user has permission to access. | +||
| INSERT | +ANY | +Allows inserting/updating data into any table in any database. | +|
| Database | +Allows users to insert/update data into any table within the scope of this database. | +||
| Table | +Allows users to insert/update data into this table. | +||
| DELETE | +ANY | +Allows deleting data from any table. | +|
| Database | +Allows users to delete data within the scope of this database. | +||
| Table | +Allows users to delete data from this table. | +
| Privilege Type | +Privilege Name | +Scope of Effect | +Description | +
|---|---|---|---|
| Global Privileges | +SYSTEM | +Global | +Allows users to create, modify, and delete databases. | +
| Allows users to create, modify, and delete tables and table views. | +|||
| Allows users to create, delete, and view user-defined functions. | +|||
| Allows users to create, start, stop, delete, and view PIPEs. Allows users to create, delete, and view PIPEPLUGINS. | +|||
| Allows users to query and cancel queries. Allows users to view variables. Allows users to view cluster status. | +|||
| Allows users to create, delete, and view deep learning models. | +|||
| SECURITY | +Global | +Allows users to create users. | +|
| Allows users to delete users. | +|||
| Allows users to modify user passwords. | +|||
| Allows users to view user privilege information. | +|||
| Allows users to list all users. | +|||
| Allows users to create roles. | +|||
| Allows users to delete roles. | +|||
| Allows users to view role privilege information. | +|||
| Allows users to grant a role to a user or revoke it. | +|||
| Allows users to list all roles. | +|||
| AUDIT | +Global | +Allows users to maintain audit log rules and view audit logs. | +|
| Data Privileges | +CREATE | +ANY | +Allows creating any table and any database. | +
| Database | +Allows users to create tables under this database; allows users to create a database with this name. | +||
| Table | +Allows users to create a table with this name. | +||
| ALTER | +ANY | +Allows modifying the definition of any table and any database. | +|
| Database | +Allows users to modify the definition of a database and the definitions of tables under that database. | +||
| Table | +Allows users to modify the definition of a table. | +||
| SELECT | +ANY | +Allows querying data from any table in any database in the system. | +|
| Database | +Allows users to query data from any table in this database. | +||
| Table | +Allows users to query data in this table. When executing multi-table queries, the database only displays data that the user has permission to access. | +||
| INSERT | +ANY | +Allows inserting/updating data into any table in any database. | +|
| Database | +Allows users to insert/update data into any table within the scope of this database. | +||
| Table | +Allows users to insert/update data into this table. | +||
| DELETE | +ANY | +Allows deleting data from any table. | +|
| Database | +Allows users to delete data within the scope of this database. | +||
| Table | +Allows users to delete data from this table. | +
| 权限类型 | +权限名称 | +生效范围 | +描述 | +
|---|---|---|---|
| 全局权限 | +SYSTEM | +全局 | +允许用户创建、修改、删除数据库。 | +
| 允许用户创建、修改、删除表及表视图。 | +|||
| 允许用户创建、删除、查看用户自定义函数。 | +|||
| 允许用户创建、开始、停止、删除、查看PIPE。允许用户创建、删除、查看PIPEPLUGINS。 | +|||
| 允许用户查询、取消查询。允许用户查看变量。允许用户查看集群状态。 | +|||
| 允许用户创建、删除、查看深度学习模型。 | +|||
| SECURITY | +全局 | +允许用户创建用户。 | +|
| 允许用户删除用户。 | +|||
| 允许用户修改用户密码。 | +|||
| 允许用户查看用户的权限信息。 | +|||
| 允许用户列出所有用户。 | +|||
| 允许用户创建角色。 | +|||
| 允许用户删除角色。 | +|||
| 允许用户查看角色的权限信息。 | +|||
| 允许用户将角色授予某个用户或撤销。 | +|||
| 允许用户列出所有角色。 | +|||
| 数据权限 | +CREATE | +ANY | +允许创建任意表、创建任意数据库。 | +
| 数据库 | +允许用户在该数据库下创建表;允许用户创建该名称的数据库。 | +||
| 表 | +允许用户创建该名称的表。 | +||
| ALTER | +ANY | +允许修改任意表的定义、任意数据库的定义。 | +|
| 数据库 | +允许用户修改数据库的定义,允许用户修改数据库下表的定义。 | +||
| 表 | +允许用户修改表的定义。 | +||
| SELECT | +ANY | +允许查询系统内任意数据库中任意表的数据。 | +|
| 数据库 | +允许用户查询该数据库中任意表的数据。 | +||
| 表 | +允许用户查询该表中的数据。执行多表查询时,数据库仅展示用户有权限访问的数据。 | +||
| INSERT | +ANY | +允许任意数据库的任意表插入/更新数据。 | +|
| 数据库 | +允许用户向该数据库范围内任意表插入/更新数据。 | +||
| 表 | +允许用户向该表中插入/更新数据。 | +||
| DELETE | +ANY | +允许删除任意表的数据。 | +|
| 数据库 | +允许用户删除该数据库范围内的数据。 | +||
| 表 | +允许用户删除该表中的数据。 | +
| 权限类型 | +权限名称 | +生效范围 | +描述 | +
|---|---|---|---|
| 全局权限 | +SYSTEM | +全局 | +允许用户创建、修改、删除数据库。 | +
| 允许用户创建、修改、删除表及表视图。 | +|||
| 允许用户创建、删除、查看用户自定义函数。 | +|||
| 允许用户创建、开始、停止、删除、查看PIPE。允许用户创建、删除、查看PIPEPLUGINS。 | +|||
| 允许用户查询、取消查询。允许用户查看变量。允许用户查看集群状态。 | +|||
| 允许用户创建、删除、查看深度学习模型。 | +|||
| SECURITY | +全局 | +允许用户创建用户。 | +|
| 允许用户删除用户。 | +|||
| 允许用户修改用户密码。 | +|||
| 允许用户查看用户的权限信息。 | +|||
| 允许用户列出所有用户。 | +|||
| 允许用户创建角色。 | +|||
| 允许用户删除角色。 | +|||
| 允许用户查看角色的权限信息。 | +|||
| 允许用户将角色授予某个用户或撤销。 | +|||
| 允许用户列出所有角色。 | +|||
| AUDIT | +全局 | +允许用户维护审计日志的规则 允许用户查看审计日志。 | +|
| 数据权限 | +CREATE | +ANY | +允许创建任意表、创建任意数据库。 | +
| 数据库 | +允许用户在该数据库下创建表;允许用户创建该名称的数据库。 | +||
| 表 | +允许用户创建该名称的表。 | +||
| ALTER | +ANY | +允许修改任意表的定义、任意数据库的定义。 | +|
| 数据库 | +允许用户修改数据库的定义,允许用户修改数据库下表的定义。 | +||
| 表 | +允许用户修改表的定义。 | +||
| SELECT | +ANY | +允许查询系统内任意数据库中任意表的数据。 | +|
| 数据库 | +允许用户查询该数据库中任意表的数据。 | +||
| 表 | +允许用户查询该表中的数据。执行多表查询时,数据库仅展示用户有权限访问的数据。 | +||
| INSERT | +ANY | +允许任意数据库的任意表插入/更新数据。 | +|
| 数据库 | +允许用户向该数据库范围内任意表插入/更新数据。 | +||
| 表 | +允许用户向该表中插入/更新数据。 | +||
| DELETE | +ANY | +允许删除任意表的数据。 | +|
| 数据库 | +允许用户删除该数据库范围内的数据。 | +||
| 表 | +允许用户删除该表中的数据。 | +