Influxdb: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
== Initial Setup== | == Initial Setup== | ||
=== Force listen on local IP === | |||
<pre> | <pre> | ||
[http] | [http] | ||
bind-address = ."192.168.1.10" | bind-address = ."192.168.1.10" | ||
</pre> | </pre> | ||
=== Connect to a specific host === | |||
<syntaxhighlight lang="mysql"> | |||
influx -host myInfluxHost | |||
<syntaxhighlight> | |||
=== Create Admin User === | === Create Admin User === | ||
<pre>influx</pre> | <pre>influx</pre> | ||
<syntaxhighlight lang="mysql">CREATE USER myAdmin WITH PASSWORD 'myPassword' WITH ALL PRIVILEGES </syntaxhighlight> | <syntaxhighlight lang="mysql"> | ||
CREATE USER myAdmin WITH PASSWORD 'myPassword' WITH ALL PRIVILEGES | |||
</syntaxhighlight> | |||
=== Enable Login === | === Enable Login === | ||
Line 20: | Line 27: | ||
auth-enabled = true | auth-enabled = true | ||
</pre> | </pre> | ||
=== Connect === | |||
* Authentification | |||
<syntaxhighlight lang="mysql"> | |||
auth | |||
username: | |||
password: | |||
<syntaxhighlight> | |||
* Use Database | |||
<syntaxhighlight lang="mysql"> | |||
use myDatabase | |||
<syntaxhighlight> | |||
== Create Database == | == Create Database == |
Revision as of 05:50, 16 October 2020
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