centralized execution ph2

This commit is contained in:
usmannasir
2019-03-26 16:19:03 +05:00
parent 520bd2b797
commit 34410360c7
70 changed files with 2485 additions and 2189 deletions

View File

@@ -19,7 +19,7 @@ class mysqlUtilities:
command = 'mysql -u root -p' + password + ' -e "' + createDB + '"'
cmd = shlex.split(command)
res = ProcessUtilities.executioner(cmd)
res = subprocess.call(cmd)
if res == 1:
return 0
@@ -29,7 +29,7 @@ class mysqlUtilities:
command = 'mysql -u root -p' + password + ' -e "' + createUser + '"'
cmd = shlex.split(command)
res = ProcessUtilities.executioner(cmd)
res = subprocess.call(cmd)
if res == 1:
return 0
@@ -37,7 +37,7 @@ class mysqlUtilities:
dropDB = "GRANT ALL PRIVILEGES ON " + dbname + ".* TO '" + dbuser + "'@'localhost'"
command = 'mysql -u root -p' + password + ' -e "' + dropDB + '"'
cmd = shlex.split(command)
res = ProcessUtilities.executioner(cmd)
res = subprocess.call(cmd)
if res == 1:
return 0