summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Langesten <daniel.langest@gmail.com>2015-03-16 14:27:27 +0100
committerDaniel Langesten <daniel.langest@gmail.com>2015-03-16 14:27:27 +0100
commit79e9abd8ffe0d37f1be6f4adb03d67baa680cbe1 (patch)
tree5843f99caae8cea9e2833f699f4ee57aef7215d7
parentfc0b970f30b1b542d1b72a4eed3fb19a1340c96d (diff)
added grants for the program
-rw-r--r--dbsetup.sql2
-rw-r--r--main.go2
2 files changed, 3 insertions, 1 deletions
diff --git a/dbsetup.sql b/dbsetup.sql
index 1a42b2d..6d64701 100644
--- a/dbsetup.sql
+++ b/dbsetup.sql
@@ -12,3 +12,5 @@ CREATE TABLE clean_data (
time DATETIME NOT NULL,
UNIQUE idx (ipb_src, ipb_dst, as_src, as_dst, port_src, port_dst, volume, time)
);
+
+grant all privileges on pmacct.* to flow-cleaner@localhost identified by 'nil' with grant option;
diff --git a/main.go b/main.go
index 894a778..730aa4e 100644
--- a/main.go
+++ b/main.go
@@ -8,7 +8,7 @@ import (
)
const (
- DATABASE_USER = "cleaner"
+ DATABASE_USER = "flow-cleaner"
DATABASE_PASS = "nil"
DATABASE_CONNECTION = "" //e.g. "tcp(localhost:55555)
DATABASE_NAME = "netflow"