Change database creation, and bug fixes.

This commit is contained in:
usmannasir
2017-11-09 00:35:52 +05:00
parent 3028dc5f60
commit 0ee10a04c5
7 changed files with 23 additions and 12 deletions

View File

@@ -75,7 +75,7 @@ class mysqlUtilities:
return 0
else:
dropDB = "GRANT ALL PRIVILEGES ON " +dbname+ ".* TO '" +dbuser+ "'@'localhost'"
command = 'sudo mysql -u root -p' + password + ' -e "' + dropDB + '"'
cmd = shlex.split(command)