Skip to content

Instantly share code, notes, and snippets.

@phstc
Last active January 2, 2016 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phstc/8317549 to your computer and use it in GitHub Desktop.
Save phstc/8317549 to your computer and use it in GitHub Desktop.
influxdb 0.4.0.rc5.src
######### install influxdb 0.4.0.rc5.src
$ brew uninstall influxdb
$ rm /usr/local/etc/influxdb.conf
$ rm -rf /usr/local/var/influxdb
$ brew update
$ brew install influxdb --devel
$ brew info influxdb
=> influxdb: stable 0.3.2 (bottled), devel 0.4.0.rc5.src
=> http://influxdb.org
=> /usr/local/Cellar/influxdb/0.4.0.rc5.src (30 files, 11M) *
######### install influxdb gems
$ gem uninstall -aIx influxdb
$ gem uninstall -aIx influxdb-cli
$ gem install influxdb --version 0.0.14
$ gem install influxdb-cli
$ gem list influxdb
=> influxdb (0.0.14)
=> influxdb-cli (0.1.1)
######### start influxdb
$ influxdb -config=/usr/local/etc/influxdb.conf
# alias influxdb='influxdb -config=/usr/local/etc/influxdb.conf'
######### connect to influxdb
$ influxdb-cli
=> Connecting to {"host"=>"localhost", "port"=>8086, "username"=>"root", "password"=>"root", "database"=>"db"}
✔ ready
2.0.0 (main)> db.create_database 'augury_development'
2.0.0 (main)> db.create_database_user 'augury_development', 'root', 'root'
# add admin privileges to root (admin can execute `delete from ...` queries)
2.0.0 (main)> db.alter_database_privilege 'augury_development', 'root'
2.0.0 (main)> use augury_development
2.0.0 (main)> db.write_point 'tests', { test: 'hello' }
# https://gist.github.com/phstc/210100816da230facc0f
2.0.0 (main)> select * from /.*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment