diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index cd56244e6..0f265106a 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -580,6 +580,10 @@ def mapToList(map_obj): def __createUser(dbname, username, password, address): pdb = pMysqlDb() + + if username == 'root': + dbname = '*' + pdb.execute( "CREATE USER `%s`@`localhost` IDENTIFIED BY '%s'" % (username, password)) pdb.execute(