The english documents is translated by machine. So It may has some mistake. We will fix them later
1.0 KiB
1.0 KiB
CREATE CLUSTER
Description
This statement is used to create a new logical cluster, requiring administrator privileges. If you don't use multiple tenants, create a cluster named default_cluster directly. Otherwise, create a cluster with a custom name.
grammar
CREATE CLUSTER [IF NOT EXISTS] cluster_name
PROPERTIES ("key"="value", ...)
IDENTIFIED BY 'password'
- PROPERTIES
Specify attributes of logical clusters
PROPERTIES ("instance_num" = "3")
Instancefn Microsoft Yahei
- Identify by'password'each logical cluster contains a superuser whose password must be specified when creating a logical cluster
'35;'35; example
- Create a new test_cluster with three be nodes and specify its superuser password
CREATE CLUSTER test_cluster PROPERTIES("instance_num"="3") IDENTIFIED BY 'test';
- Create a new default_cluster with three be nodes (no multi-tenant is used) and specify its superuser password
CREATE CLUSTER default_cluster PROPERTIES("instance_num"="3") IDENTIFIED BY 'test';
keyword
CREATE,CLUSTER