From 4c38fceb2286bb6df7835e4219bbdd3fc8dfa14b Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Mon, 26 Oct 2015 12:53:53 +0530 Subject: [PATCH] Fix anemometer issue with mysql 10.1 --- ee/cli/plugins/stack.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 946cf343..58062f45 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -1226,8 +1226,9 @@ class EEStackController(CementBaseController): raise SiteError("Unable to import Anemometer database") EEMysql.execute(self, 'grant select on *.* to \'anemometer\'' - '@\'{0}\''.format(self.app.config.get('mysql', - 'grant-host'))) + '@\'{0}\' IDENTIFIED' + ' BY \'{1}\''.format(self.app.config.get('mysql', + 'grant-host'),chars)) Log.debug(self, "grant all on slow-query-log.*" " to anemometer@root_user IDENTIFIED BY password ") EEMysql.execute(self, 'grant all on slow_query_log.* to'