From 79e9abd8ffe0d37f1be6f4adb03d67baa680cbe1 Mon Sep 17 00:00:00 2001 From: Daniel Langesten Date: Mon, 16 Mar 2015 14:27:27 +0100 Subject: added grants for the program --- dbsetup.sql | 2 ++ main.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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" -- cgit v1.1