Skip to content

Commit 1afb424

Browse files
laodouyalaodouya
authored andcommitted
Replace some docker exec command to raw cql command.
1 parent 804fd90 commit 1afb424

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/advanced_deployment.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ e.g.: creating a single-node database instance
8787

8888

8989
```bash
90-
docker exec -it covenantsql_adapter /app/cql create -config /app/node_adapter/config.yaml -db-node 1
90+
cql create -config ${COVENANTSQL_ROOT}/test/service/node_c/config.yaml -db-node 1
9191
```
9292

9393
> Modify the value of the `create` parameter to create an instance running on multiple nodes
9494
> e.g.: create an instance of two nodes
9595
9696
```bash
97-
docker exec -it covenantsql_adapter /app/cql create -config /app/node_adapter/config.yaml -db-node 2
97+
cql create -config ${COVENANTSQL_ROOT}/test/service/node_c/config.yaml -db-node 2
9898
```
9999

100100
The command will return the connection string of the created database instance
@@ -108,7 +108,7 @@ covenantsql://0a255f136520a2bc6a29055a619ec4f72c2c80fa600daf73b1caa375946ea0e4
108108
Use the `cql` command and use the `dsn` parameter to provide a connection string for the database instance access:
109109

110110
```bash
111-
docker exec -it covenantsql_adapter /app/cql console -config /app/node_adapter/config.yaml covenantsql://0a255f136520a2bc6a29055a619ec4f72c2c80fa600daf73b1caa375946ea0e4
111+
cql console -config ${COVENANTSQL_ROOT}/test/service/node_c/config.yaml covenantsql://0a255f136520a2bc6a29055a619ec4f72c2c80fa600daf73b1caa375946ea0e4
112112
```
113113

114114
After that, it will get the following output, and enter the `cql` interactive command line mode

website/translated_docs/zh-CN/version-0.6.0/advanced_deployment.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ covenantsql_observer ./docker-entry.sh Up 4661/tcp, 0
8686
使用 `cql` 命令并使用 `create` 参数提供所需的数据库节点数量创建数据库实例,例如:创建一个单节点的数据库实例
8787

8888
```bash
89-
docker exec -it covenantsql_adapter /app/cql create -config /app/node_adapter/config.yaml -db-node 1
89+
cql create -config ${COVENANTSQL_ROOT}/test/service/node_c/config.yaml -db-node 1
9090
```
9191

9292
> 修改 `create` 参数的值,可以创建运行在多节点上的实例,例如:创建两个节点的实例
9393
9494
```bash
95-
docker exec -it covenantsql_adapter /app/cql create -config /app/node_adapter/config.yaml -db-node 2
95+
cql create -config ${COVENANTSQL_ROOT}/test/service/node_c/config.yaml -db-node 2
9696
```
9797

9898
命令会返回创建的数据库实例的连接串
@@ -105,9 +105,9 @@ covenantsql://4bc27a06ae52a7b8b1747f3808dda786ddd188627bafe8e34a332626e7232ba5
105105

106106
使用 `cql` 命令并使用 `dsn` 参数提供数据库实例的连接串进行数据库访问
107107

108-
```bash
109-
docker exec -it covenantsql_adapter /app/cql console -config /app/node_adapter/config.yaml covenantsql://4bc27a06ae52a7b8b1747f3808dda786ddd188627bafe8e34a332626e7232ba5
110-
```
108+
```bash
109+
cql console -config ${COVENANTSQL_ROOT}/test/service/node_c/config.yaml covenantsql://0a255f136520a2bc6a29055a619ec4f72c2c80fa600daf73b1caa375946ea0e4
110+
```
111111

112112
会得到如下输出,并进入 `cql` 交互命令行模式
113113

0 commit comments

Comments
 (0)