Influxdb: Difference between revisions

From Objectif Client Inc
Jump to navigation Jump to search
Line 37: Line 37:


=== Create Database ===
=== Create Database ===
<pre>influx</pre>
<syntaxhighlight lang="mysql">
<syntaxhighlight lang="mysql">
create database database_name
CREATE DATABASE database_name
show databases
SHOW DATABASES
</syntaxhighlight>
</syntaxhighlight>



Revision as of 05:55, 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

CREATE DATABASE database_name
SHOW DATABASES

Grant user to Database

  • Use Database
use myDatabase