File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
website/translated_docs/zh-CN Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,14 +85,14 @@ Create a DB instance by using the `cql` command and using the `create` parameter
85
85
e.g.: creating a single-node database instance
86
86
87
87
``` bash
88
- docker exec -it covenantsql_adapter /app/cql create -config /app/config.yaml -no-password ' {" node":1} '
88
+ docker exec -it covenantsql_adapter /app/cql create -config /app/config.yaml -db- node 1
89
89
```
90
90
91
91
> Modify the value of the ` create ` parameter to create an instance running on multiple nodes
92
92
> e.g.: create an instance of two nodes
93
93
94
94
``` bash
95
- docker exec -it covenantsql_adapter /app/cql create -config /app/config.yaml -no-password ' {" node":1} '
95
+ docker exec -it covenantsql_adapter /app/cql create -config /app/config.yaml -db- node 2
96
96
```
97
97
98
98
The command will return the connection string of the created database instance
@@ -105,7 +105,7 @@ The command will return the connection string of the created database instance
105
105
Use the ` cql ` command and use the ` dsn ` parameter to provide a connection string for the database instance access:
106
106
107
107
``` bash
108
- docker exec -it covenantsql_adapter /app/cql console -config /app/config.yaml -no-password -dsn covenantsql://0a255f136520a2bc6a29055a619ec4f72c2c80fa600daf73b1caa375946ea0e4
108
+ docker exec -it covenantsql_adapter /app/cql console -config /app/config.yaml covenantsql://0a255f136520a2bc6a29055a619ec4f72c2c80fa600daf73b1caa375946ea0e4
109
109
```
110
110
111
111
After that, it will get the following output, and enter the ` cql ` interactive command line mode
You can’t perform that action at this time.
0 commit comments