Influxdb: Difference between revisions

From Objectif Client Inc
Jump to navigation Jump to search
Line 14: Line 14:
<syntaxhighlight lang="mysql">
<syntaxhighlight lang="mysql">
influx -host  myInfluxHost
influx -host  myInfluxHost
<syntaxhighlight>
</syntaxhighlight>


=== Create Admin User ===
=== Create Admin User ===
Line 34: Line 34:
   username:
   username:
   password:
   password:
<syntaxhighlight>
</syntaxhighlight>
 
=== Create Database ===
<pre>influx</pre>
<syntaxhighlight lang="mysql">create database database_name </syntaxhighlight>
<syntaxhighlight lang="mysql">show databases</syntaxhighlight>
 
=== Grant user to Database ===
<syntaxhighlight lang="mysql">
 
</syntaxhighlight>


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

Revision as of 05:53, 16 October 2020

Influx

Influx

Initial Setup

Force listen on local IP

[http]
  bind-address = ."192.168.1.10"

Connect to a specific host

influx -host  myInfluxHost

Create Admin User

influx
CREATE USER myAdmin WITH PASSWORD 'myPassword' WITH ALL PRIVILEGES

Enable Login

[http]
   auth-enabled = true

Connect

  • Authentification
auth
   username:
   password:

Create Database

influx
create database database_name
show databases

Grant user to Database

  • Use Database
use myDatabase