Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] update hertzbeat-mysql-tdengine readme #1335

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`

---
---

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