diff --git a/kippo/dblog/mysql.py b/kippo/dblog/mysql.py index c0f836d6..0eb5e21b 100644 --- a/kippo/dblog/mysql.py +++ b/kippo/dblog/mysql.py @@ -7,7 +7,8 @@ class DBLogger(dblog.DBLogger): host = cfg.get('database', 'host'), db = cfg.get('database', 'database'), user = cfg.get('database', 'username'), - passwd = cfg.get('database', 'password')) + passwd = cfg.get('database', 'password'), + reconnect = True) def createSession(self, ip): sql = 'INSERT INTO `session` (`starttime`, `sensor`, `ip`)' + \