Correct 'curl' commands

pull/1733/head
Philip O'Toole 2015-02-24 19:34:55 -08:00
parent 046cf178b8
commit fad12bb7b5
1 changed files with 2 additions and 2 deletions

View File

@ -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