Skip to content

Commit

Permalink
[doc] update hertzbeat-mysql-tdengine readme (#1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiashu1024 authored and tomsun28 committed Jan 16, 2024
1 parent 8fa6998 commit 01f8fdb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
20 changes: 13 additions & 7 deletions script/docker-compose/hertzbeat-mysql-tdengine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,26 @@

3. Enter tdengine to create hertzbeat database

`$ docker exec -it compose-tdengine /bin/bash
root@tdengine-server:~/TDengine-server-2.4.0.4#`
```shell
$ docker exec -it tdengine /bin/bash
root@tdengine-server:~/TDengine-server-2.4.0.4#
```

Create a database named hertzbeat After entering the container, execute the taos shell client program.

`root@tdengine-server:~/TDengine-server-2.4.0.4# taos

```bash
root@tdengine-server:~/TDengine-server-2.4.0.4# taos
Welcome to the TDengine shell from Linux, Client Version: 2.4.0.4
Copyright (c) 2020 by TAOS Data, Inc. All rights reserved.
taos>`
taos>
```



Execute the create database command

`taos> show databases;`

`taos> CREATE DATABASE hertzbeat KEEP 90 DAYS 10 BLOCKS 6 UPDATE 1;`

##### Restart the application
Expand Down
22 changes: 13 additions & 9 deletions script/docker-compose/hertzbeat-mysql-tdengine/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,24 @@

3. 进入tdengine创建hertzbeat数据库

`$ docker exec -it tdengine /bin/bash
root@tdengine-server:~/TDengine-server-2.4.0.4#`
```bash
$ docker exec -it tdengine /bin/bash
root@tdengine-server:~/TDengine-server-2.4.0.4#
```

创建名称为hertzbeat的数据库 进入容器后,执行 taos shell 客户端程序。

`root@tdengine-server:~/TDengine-server-2.4.0.4# taos
Welcome to the TDengine shell from Linux, Client Version:2.4.0.4

```bash
root@tdengine-server:~/TDengine-server-2.4.0.4# taos
Welcome to the TDengine shell from Linux, Client Version: 2.4.0.4
Copyright (c) 2020 by TAOS Data, Inc. All rights reserved.
taos>`
taos>
```

执行创建数据库命令

`taos> show databases;`

`taos> CREATE DATABASE hertzbeat KEEP 90 DAYS 10 BLOCKS 6 UPDATE 1;`

##### 重启应用
Expand All @@ -51,6 +55,6 @@

浏览器访问 `localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat`

---
---

怎么样是不是很简单,只要几分钟就可以部署完成,赶紧试试吧!

0 comments on commit 01f8fdb

Please sign in to comment.