Last active
January 2, 2016 14:29
-
-
Save phstc/8317549 to your computer and use it in GitHub Desktop.
influxdb 0.4.0.rc5.src
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######### 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