diff options
author | Daniel Langesten <daniel.langest@gmail.com> | 2015-03-16 14:27:27 +0100 |
---|---|---|
committer | Daniel Langesten <daniel.langest@gmail.com> | 2015-03-16 14:27:27 +0100 |
commit | 79e9abd8ffe0d37f1be6f4adb03d67baa680cbe1 (patch) | |
tree | 5843f99caae8cea9e2833f699f4ee57aef7215d7 | |
parent | fc0b970f30b1b542d1b72a4eed3fb19a1340c96d (diff) |
added grants for the program
-rw-r--r-- | dbsetup.sql | 2 | ||||
-rw-r--r-- | main.go | 2 |
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; @@ -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" |