Influxdb

From Objectif Client Inc
Jump to navigation Jump to search

Influx

Influx

Initial Setup

Force listen on local IP

[http]
  bind-address = ."192.168.1.10"

Connect to a specific host

influx -host  myInfluxHost
<syntaxhighlight>

=== Create Admin User ===
<pre>influx</pre>
<syntaxhighlight lang="mysql">
CREATE USER myAdmin WITH PASSWORD 'myPassword' WITH ALL PRIVILEGES

Enable Login

[http]
   auth-enabled = true

Connect

  • Authentification
auth
   username:
   password:
<syntaxhighlight>

* Use Database
<syntaxhighlight lang="mysql">
use myDatabase
<syntaxhighlight>

== Create Database ==
From the command line:
<pre>influx</pre>
<syntaxhighlight lang="mysql">create database database_name
show databases