summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"