Install InfluxDB and create a database
InfluxDB is an open source database written in Go specifically to handle time series data with high availability and high performance requirements. InfluxDB installs in minutes without external dependencies, yet is flexible and scalable enough for complex deployments.
Install InfluxDB
For MAC OS X (via Homebrew). Open up the terminal and run:
brew update
brew install influxdb
To start InfluxDB at login, run:
brew services start influxdb
If you use another operating system, have a look here.
Creating a database
Well done, you've installed InfluxDB locally. The `influx` command should now be available via the command line.
If you type in `influx` and displays something like the lines below, you're all set.
Connected to http://localhost:8086 version v1.2.0
InfluxDB shell version: v1.2.0
The next step is thinking of a fancy name for a database, like `ttndb`.
CREATE DATABASE ttndb
To start using this database, mention it explicitly. The `USE <db-name>` command automatically set the database for all future requests.
USE ttndb
Well done. You've now setup InfluxDB and created a database.