Correct 'curl' commands
parent
046cf178b8
commit
fad12bb7b5
|
@ -33,12 +33,12 @@ For those adventurous enough, you can
|
|||
### Creating your first database
|
||||
|
||||
```JSON
|
||||
curl -XGET 'http://localhost:8086/query' --data-urlencode "q=CREATE DATABASE mydb"
|
||||
curl -G 'http://localhost:8086/query' --data-urlencode "q=CREATE DATABASE mydb"
|
||||
```
|
||||
### Setting up the database's retention policy
|
||||
|
||||
```JSON
|
||||
curl -XGET 'http://localhost:8086/query' --data-urlencode "q=CREATE RETENTION POLICY mypolicy ON mydb REPLICATION 7d DEFAULT"
|
||||
curl -G 'http://localhost:8086/query' --data-urlencode "q=CREATE RETENTION POLICY mypolicy ON mydb DURATION 7d REPLICATION 1" DEFAULT"
|
||||
```
|
||||
|
||||
## Helpful Links
|
||||
|
|
Loading…
Reference in New Issue