File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/MatrixOne/Reference/SQL-Reference/Data-Definition-Language Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33## 语法说明
44
5- ` RESTORE ... FROM SNAPSHOT ` 用于从之前创建的集群/租户/数据库/表级别的快照中进行集群/租户/数据库/表级别的恢复数据。
5+ ` RESTORE ... SNAPSHOT ` 用于从之前创建的集群/租户/数据库/表级别的快照中进行集群/租户/数据库/表级别的恢复数据。
66
77## 语法结构
88
99``` sql
10- RESTORE CLUSTER FROM SNAPSHOT < snapshot_name> ;
10+ RESTORE CLUSTER { SNAPSHOT = < snapshot_name> } ;
1111
1212RESTORE ACCOUNT < account_name> {SNAPSHOT = < snapshot_name> } [TO ACCOUNT < target_account_name> ];
1313
@@ -59,7 +59,7 @@ mysql> show databases;
59596 rows in set (0 .01 sec)
6060
6161-- 在系统租户 sys 下执行
62- restore cluster FROM snapshot cluster_sp1;-- 在系统租户下对集群进行快照恢复
62+ restore cluster{ snapshot= " cluster_sp1" } ;-- 在系统租户下对集群进行快照恢复
6363
6464-- 在租户 acc1,acc2 下执行
6565mysql> show databases;-- 恢复成功
You can’t perform that action at this time.
0 commit comments