Update index.py

pull/109/head
midoks 4 years ago
parent c3d40b51a0
commit da4d67065d
  1. 4
      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(

Loading…
Cancel
Save